Notes/src/services/request_interface.ts

20 lines
379 B
TypeScript
Raw Normal View History

2024-02-18 13:10:51 +02:00
export interface CookieJar {
header?: string;
}
export interface ExecOpts {
2024-04-03 23:18:39 +03:00
proxy: "noproxy" | string | null;
2024-02-18 13:10:51 +02:00
method: string;
url: string;
paging?: {
pageCount: number;
pageIndex: number;
requestId: string;
};
cookieJar?: CookieJar;
auth?: {
password?: string;
},
timeout: number;
2024-04-03 23:18:39 +03:00
body?: string | {};
2024-02-18 13:10:51 +02:00
}