mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-22 10:08:45 +08:00
22 lines
635 B
TypeScript
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 };
|