multiple libraries, add request and cookie
This commit is contained in:
9
lib/utility/request.d.ts
vendored
Normal file
9
lib/utility/request.d.ts
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
interface RequestOptions {
|
||||
method?: string;
|
||||
contentType?: string;
|
||||
customerHeaders?: { [key: string]: string };
|
||||
signal?: AbortSignal | null;
|
||||
}
|
||||
|
||||
export function get(url: string, options?: RequestOptions): Promise<Response>
|
||||
export function post(url: string, data?: BodyInit | null, options?: RequestOptions): Promise<Response>
|
Reference in New Issue
Block a user