mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 06:00:46 -05:00
type(extensions): config and add core.util.helpers
This commit is contained in:
committed by
KernelDeimos
parent
1358e98c5b
commit
943a3c7bab
Vendored
+8
@@ -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,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "CommonJS",
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
|
||||
@@ -1,9 +1,11 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2020",
|
||||
"module": "CommonJS",
|
||||
"allowJs": true,
|
||||
"module": "esnext",
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": ".",
|
||||
"outDir": "/dev/null",
|
||||
"paths": {
|
||||
"../src/*": ["../src/*"]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user