-
Notifications
You must be signed in to change notification settings - Fork 10
/
globals.d.ts
41 lines (32 loc) · 1.14 KB
/
globals.d.ts
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/// <reference types="./src/maskbook/packages/encryption/src/internal.d.ts" />
/// <reference types="./src/maskbook/packages/polyfills/types/__all.d.ts" />
/// <reference types="./src/maskbook/packages/polyfills/types/dom.d.ts" />
/// <reference types="./src/maskbook/packages/polyfills/types/firefox.d.ts" />
/// <reference types="./src/maskbook/packages/web3-telemetry/src/env.d.ts" />
declare module 'dayjs-twitter' {
import type { PluginFunc } from 'dayjs';
declare const plugin: PluginFunc;
export default plugin;
declare module 'dayjs' {
interface Dayjs {
twitter(): string;
}
}
}
declare module 'unist-util-flatmap' {
export interface Node {
children?: Node[];
[key: string]: any;
}
export type TransformFn = (node: Node, index: number, parent: Node | null) => Node[] | null;
function flatMap(ast: Node, fn: TransformFn): Node[];
export = flatMap;
}
declare module '*.svg' {
const content: React.FunctionComponent<React.SVGAttributes<SVGElement>>;
export default content;
}
declare module '*.svg?url' {
const content: string;
export default content;
}