42 lines
855 B
TypeScript
42 lines
855 B
TypeScript
declare interface String {
|
|
contains(keywords: RegExp | string): boolean;
|
|
}
|
|
|
|
declare interface Window {
|
|
unsafeWindow?: Window & typeof globalThis;
|
|
$?: JQueryStatic;
|
|
jQuery?: JQueryStatic;
|
|
WHPARAMS?: any;
|
|
ReactDOM?: any;
|
|
|
|
addRFC(url: URL | string): string;
|
|
|
|
PDA_httpGet(url: URL | string): Promise<PDA_Response>;
|
|
|
|
PDA_httpPost(url: URL | string, init: any, body: any): Promise<PDA_Response>;
|
|
|
|
GM_xmlhttpRequest(init: GM_RequestParams);
|
|
}
|
|
|
|
declare interface GM_RequestParams {
|
|
method?: string,
|
|
url?: URL | string,
|
|
data?: any,
|
|
headers?: any,
|
|
onload?: Function,
|
|
onerror?: Function,
|
|
ontimeout?: Function,
|
|
}
|
|
|
|
declare interface PDA_Response {
|
|
responseText: string
|
|
}
|
|
|
|
declare interface Element {
|
|
innerText?: string;
|
|
src?: string;
|
|
}
|
|
|
|
declare interface Notification {
|
|
id?: number;
|
|
} |