This commit is contained in:
Faker
2022-05-12 11:10:00 +08:00
parent 25fe17e584
commit f3f5c595bb
15 changed files with 637 additions and 301 deletions

21
TS_JDHelloWorld.d.ts vendored Normal file
View File

@@ -0,0 +1,21 @@
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 };