diff --git a/extensions/api.d.ts b/extensions/api.d.ts index fc130161d..ad670c5ff 100644 --- a/extensions/api.d.ts +++ b/extensions/api.d.ts @@ -68,6 +68,10 @@ interface ServiceNameMap { } interface Extension extends RouterMethods { exports: Record, + span: ((label: string, fn: () => T) => () => T) & { + run(label: string, fn: () => T): T; + run(fn: () => T): T; + }, on(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,