rest: update fetch type
vi did:web:vt3e.cat
Fri, 19 Jun 2026 12:05:43 +0100
2 files changed,
2 insertions(+),
2 deletions(-)
M
pkgs/rest/package.json
→
pkgs/rest/package.json
@@ -1,6 +1,6 @@
{ "name": "@purrkit/rest", - "version": "1.1.0", + "version": "1.1.1", "license": "EUPL-1.2", "files": [ "dist",
M
pkgs/rest/src/client.ts
→
pkgs/rest/src/client.ts
@@ -3,7 +3,7 @@
export interface ClientOptions { token: string; baseUrl?: string; - fetch?: typeof fetch; + fetch?: (input: RequestInfo | URL | string, init?: RequestInit) => Promise<Response>; } export function RESTClient(options: ClientOptions): DiscordRestClient {