You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
620 B
29 lines
620 B
import { DatabaseService } from "../interfaces/database";
|
|
|
|
declare module "@jlongster/sql.js" {
|
|
interface SQL {
|
|
Database: any;
|
|
FS: any;
|
|
register_for_idb: (fs: any) => void;
|
|
}
|
|
|
|
function initSqlJs(config: {
|
|
locateFile: (file: string) => string;
|
|
}): Promise<SQL>;
|
|
export default initSqlJs;
|
|
}
|
|
|
|
declare module "absurd-sql" {
|
|
export class SQLiteFS {
|
|
constructor(fs: any, backend: any);
|
|
}
|
|
}
|
|
|
|
declare module "absurd-sql/dist/indexeddb-backend" {
|
|
export default class IndexedDBBackend {
|
|
constructor();
|
|
}
|
|
}
|
|
|
|
declare const databaseService: DatabaseService;
|
|
export default databaseService;
|
|
|