-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobals.d.ts
More file actions
25 lines (21 loc) · 734 Bytes
/
globals.d.ts
File metadata and controls
25 lines (21 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Type declarations for CDN-loaded globals (React, ReactDOM, Chart.js, sql.js, Hammer)
// These are loaded via <script> tags in index-dev.html, not via imports
declare const React: typeof import('react');
declare const ReactDOM: typeof import('react-dom');
declare const Chart: {
register(...items: any[]): void;
registerables: any[];
new (ctx: any, config: any): {
destroy(): void;
update(): void;
data: any;
options: any;
};
};
declare const initSqlJs: (config?: { locateFile?: (file: string) => string }) => Promise<{
Database: new (data?: ArrayLike<number>) => {
exec(sql: string, params?: any[]): { columns: string[]; values: any[][] }[];
close(): void;
};
}>;
declare const Hammer: any;