Archived
1
0
Fork 0
This repository has been archived on 2024-02-07. You can view files and clone it, but cannot push or open issues or pull requests.
supDolphinWS.js/dist/utils.d.ts

11 lines
509 B
TypeScript
Raw Normal View History

2023-03-09 19:53:09 +09:00
export type RequestAddress = number | number[];
export declare const normalizeRequestAddress: (addr: RequestAddress) => number[];
export declare const getRequestAddressPath: (addr: RequestAddress) => string;
export declare const http: ({ method, url, body, contentType, responseType }: {
method: string;
url: string | URL;
body?: Parameters<XMLHttpRequest['send']>[0];
contentType?: string | undefined;
responseType?: XMLHttpRequestResponseType | undefined;
}) => Promise<XMLHttpRequest>;