18 lines
311 B
TypeScript
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>
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|