PrintCal / src /types /sqlite.d.ts
phucsd's picture
feat: PrintCal - Smart offset and digital print pricing calculator with ERP management
0a5bd33
Raw History Blame Contribute Delete
425 Bytes
declare module 'node:sqlite' {
export class DatabaseSync {
constructor(location: string, options?: { open?: boolean });
close(): void;
exec(sql: string): void;
prepare(sql: string): StatementSync;
}
export class StatementSync {
all(...params: unknown[]): unknown[];
get(...params: unknown[]): unknown;
run(...params: unknown[]): { changes: number; lastInsertRowid: number | bigint };
}
}