type(extensions): config and add core.util.helpers

This commit is contained in:
KernelDeimos
2025-09-24 14:49:30 -04:00
committed by KernelDeimos
parent 1358e98c5b
commit 943a3c7bab
3 changed files with 12 additions and 2 deletions
+8
View File
@@ -1,4 +1,5 @@
import type { RequestHandler } from 'express';
import type helpers from '../src/backend/src/helpers.js';
declare global {
namespace Express {
@@ -25,10 +26,17 @@ type RouterMethods = {
};
}
type CoreRuntimeModule = {
util: {
helpers: typeof helpers,
}
}
interface Extension extends RouterMethods {
// import(module: 'core'): {
// UserActorType: typeof UserActorType;
// };
import(module: 'core'): CoreRuntimeModule;
import(module: string): any;
}
+1 -1
View File
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "CommonJS",
"module": "esnext",
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
+3 -1
View File
@@ -1,9 +1,11 @@
{
"compilerOptions": {
"target": "ES2020",
"module": "CommonJS",
"allowJs": true,
"module": "esnext",
"moduleResolution": "node",
"baseUrl": ".",
"outDir": "/dev/null",
"paths": {
"../src/*": ["../src/*"]
},