mirror of
https://github.com/HeyPuter/puter.git
synced 2026-10-08 21:02:33 +00:00
type: add extension.span to api.d.ts
This commit is contained in:
1 parent
2e4a504cda
commit
2aa4cd857d
1 file changed
+4
Vendored
+4
@@ -68,6 +68,10 @@ interface ServiceNameMap {
|
||||
}
|
||||
interface Extension extends RouterMethods {
|
||||
exports: Record<string, unknown>,
|
||||
span: (<T>(label: string, fn: () => T) => () => T) & {
|
||||
run<T>(label: string, fn: () => T): T;
|
||||
run<T>(fn: () => T): T;
|
||||
},
|
||||
on<T extends unknown[]>(event: string, listener: (...args: T) => void): void, // TODO DS: type events better
|
||||
import(module: 'data'): { db: BaseDatabaseAccessService, kv: DBKVStore, cache: unknown }// TODO DS: type cache better
|
||||
import(module: 'core'): CoreRuntimeModule,
|
||||
|
||||
Reference in new issue
Block a user