-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lib.dom.d.ts
46 lines (42 loc) · 1.38 KB
/
lib.dom.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
42
43
44
45
46
import {
UserLoginParams,
UserRegisterParams,
UserModifyParams,
} from 'main/interface';
export type ImportDataType = {
type: 'account' | 'network';
name?: string;
username?: string;
password?: string;
remarks?: string;
};
export type SecretfnsType = {
GET_ALL_LIST: (value: string | undefined) => Promise<[]>;
GET_BIN_LIST: (value: string | undefined) => Promise<[]>;
GET_SEARCH_LIST: (value: string | undefined) => Promise<[]>;
ADD_DATA: (value: unknown) => Promise<undefined>;
GET_DATA: () => Promise<[]>;
UPDATE_DATA: (value: unknown, id: number | undefined) => Promise<undefined>;
DEL_DATA: (id: number | undefined) => Promise<undefined>;
DEL_DATA_PHYSICS: (id: number | undefined) => Promise<undefined>;
IMPORT_FILE_DATA: () => Promise<[ImportDataType]>;
CHANGR_WINDOW_HEIGHT: (options: {
width?: number;
height?: number;
}) => Promise<[undefined]>;
CLIPBOARD_PASSWORD_DATA: (text?: string) => Promise<undefined>;
USER_LOGIN: (data: UserLoginParams) => Promise<any>;
USER_REGISTER: (data: UserRegisterParams) => Promise<any>;
USER_MODIFY: (data: UserModifyParams) => Promise<any>;
[propsname: string]: any;
};
export type secretsendType = {
SEND_LOGIN_STATUS: (callback: (status: boolean) => void) => void;
[propsname: string]: any;
};
declare global {
interface Window {
secretfns: SecretfnsType;
secretsend: secretsendType;
}
}