work-graph-simple/types.d.ts
2025-07-01 09:50:54 -04:00

18 lines
311 B
TypeScript

export {};
export type Row<
L extends number,
T extends any[] = []
> = T["length"] extends L ? T : Row<L, [string, ...T]>;
declare global {
namespace DB
{
type DB<T, Count extends number>=(path:string, flat:Count, handler:(...args:[...Row<Count>, T])=>void)=>Promise<void>
}
}