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
2023-03-09 20:03:39 +09:00

10 lines
509 B
TypeScript

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>;