-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
37 lines (32 loc) · 1.27 KB
/
types.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
/// <reference path="../Kernel/electron/packages/advanced-discord-notifications/types.d.ts" />
declare module '@logger' {
interface Logger extends Console {
startTimer: () => (message: string) => void;
}
export default Logger;
}
declare module '@apis' {
export function sendNotification({ icon, header, content, onClick, ignoreStatusCheck, }: {
icon: string;
header: string;
content: string;
onClick?: () => void;
ignoreStatusCheck?: boolean;
}): void;
export function injectCSS(data: string, id: string, customNode?: Element): HTMLStyleElement;
}
declare module '@apis/settings' {
export function create(module: string): {
get(group: string, def?: any): any;
set(group: string, value: any): void;
use(group: string, def?: any): [any, React.Dispatch<any>];
};
}
declare module '@patcher' {
export const _patches: Set<unknown>;
export function addPatch(unpatch: Function): void;
export function unpatchAll(): void;
export function after(module: object, funcString: string, replacement: Function): void | (() => void);
export function before(module: object, funcString: string, replacement: Function): void | (() => void);
export function instead(module: object, funcString: string, replacement: Function): void | (() => void);
}