faker2/TS_JDHelloWorld.d.ts
2022-05-12 11:09:34 +08:00

22 lines
635 B
TypeScript

interface User {
i: number;
UserName: string;
cookie: string;
UserAgent: string;
}
declare class JDHelloWorld {
scriptName: string;
constructor(scriptName?: string);
getCookie(check?: boolean): Promise<string[]>;
checkCookie(cookie: string): Promise<boolean>;
exceptCookie(filename?: string): any;
get(url: string, headers?: any): Promise<unknown>;
post(url: string, data: any, headers?: any): Promise<object>;
wait(ms?: number): Promise<unknown>;
o2s(obj: object, title?: string): void;
run(son: {
main: Function;
}): Promise<void>;
}
export { User, JDHelloWorld };