From 2aa4cd857dbb3e9dfbba02aabfeb76d8a93090fb Mon Sep 17 00:00:00 2001 From: KernelDeimos <7225168+KernelDeimos@users.noreply.github.com> Date: Tue, 9 Dec 2025 19:09:57 -0500 Subject: [PATCH] type: add extension.span to api.d.ts --- extensions/api.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/api.d.ts b/extensions/api.d.ts index fc130161..ad670c5f 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,