Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Middleware<
CommandOutput extends Jsonifiable | unknown = unknown,
> = (input: CommandInput, output: CommandOutput) => CommandOutput;

type Body = BodyInit | null | Uint8Array
type Body = RequestInit['body'] | null | Uint8Array

export abstract class Command<
// WARN: this must be kept compatible with the Client Input and Output types
Expand Down
2 changes: 1 addition & 1 deletion lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export type Resolver<T = unknown> = () => T | Promise<T>;
export type ResolvableHeaders = Record<string, string | Resolver<string>>;

export type FetcherParams = {
body?: BodyInit | Uint8Array | null;
body?: RequestInit['body'] | Uint8Array | null;
url: URL;
method: HttpMethod;
headers?: Record<string, string>;
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"allowImportingTsExtensions": true,
"noEmit": true,
"noPropertyAccessFromIndexSignature": false,
"lib": ["es2024", "webworker"]
"lib": ["es2024"]
},
"include": ["./src", "test", "./lib"],
"exclude": ["./dist", "node_modules"]
Expand Down