mirror of
https://github.com/shufflewzc/faker2.git
synced 2025-04-22 00:02:37 +00:00
create
This commit is contained in:
parent
acfd59bfe8
commit
9fc3abe84a
35
TS_JDHelloWorld.d.ts
vendored
Normal file
35
TS_JDHelloWorld.d.ts
vendored
Normal file
@ -0,0 +1,35 @@
|
||||
interface User {
|
||||
index: number;
|
||||
UserName: string;
|
||||
cookie: string;
|
||||
UserAgent: string;
|
||||
end?: boolean;
|
||||
}
|
||||
declare class JDHelloWorld {
|
||||
scriptName: string;
|
||||
cookiesArr: string[];
|
||||
users: User[];
|
||||
constructor(scriptName?: string);
|
||||
getCookie(): Promise<void>;
|
||||
exceptCookie(filename?: string): string[];
|
||||
get(url: string, headers?: any): Promise<unknown>;
|
||||
post(url: string, data: any, headers?: any, params?: object): Promise<object | string>;
|
||||
wait(ms?: number): Promise<unknown>;
|
||||
o2s(obj: object, title?: string): void;
|
||||
getShareCodePool(key: string, num: number): Promise<string[]>;
|
||||
getshareCodeHW(key: string): Promise<string[]>;
|
||||
getRandomNumberByRange(start: number, end: number): number;
|
||||
getRandomNumString(e: number): string;
|
||||
getEncStr(fn: string, body: {
|
||||
id?: number;
|
||||
taskType?: number;
|
||||
}): object;
|
||||
getSign(fn: string, body: object): Promise<string>;
|
||||
cashDoSign(): Promise<unknown>;
|
||||
run(son: {
|
||||
main: any;
|
||||
help?: any;
|
||||
tips?: any;
|
||||
}, help?: Function, tips?: Function): Promise<void>;
|
||||
}
|
||||
export { User, JDHelloWorld };
|
1
TS_JDHelloWorld.js
Normal file
1
TS_JDHelloWorld.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user