Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
17 lines
551 B
Plaintext
17 lines
551 B
Plaintext
import { RequestOptions, RequestTransformer, ResponseTransformer } from "../types/request.js";
|
|
|
|
//#region src/rest/types.d.ts
|
|
interface RestCommand<_Output extends object | unknown, _Schema> {
|
|
(): RequestOptions;
|
|
}
|
|
interface RestClient<Schema> {
|
|
request<Output>(options: RestCommand<Output, Schema>): Promise<Output>;
|
|
}
|
|
interface RestConfig {
|
|
credentials?: RequestCredentials;
|
|
onRequest?: RequestTransformer;
|
|
onResponse?: ResponseTransformer;
|
|
}
|
|
//#endregion
|
|
export { RestClient, RestCommand, RestConfig };
|
|
//# sourceMappingURL=types.d.ts.map |