This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
wikipedia-game-solver/patches/@tuyau__client@0.1.2.patch

20 lines
1.3 KiB
Diff
Raw Permalink Normal View History

2024-08-18 02:31:02 +02:00
diff --git a/build/index.d.ts b/build/index.d.ts
index fd28b2fd3f91f0312e933189df5b635eeb692281..445d47f6f18a981bba7c0e784a03972bdf99c880 100644
--- a/build/index.d.ts
+++ b/build/index.d.ts
@@ -83,11 +83,11 @@ type TuyauRpcClient<in out Route extends Record<string, any>> = {
response: infer Res extends Record<number, unknown>;
request: infer Request;
} ? K extends '$get' | '$head' ? unknown extends Request ? (options?: TuyauQueryOptions & {
- query?: Request;
+ query?: Omit<Request, 'cookies' | 'headers' | 'params'>;
}) => ResponseOrUnwrap<Res> : {} extends Request ? (options?: TuyauQueryOptions & {
- query?: Request;
+ query?: Omit<Request, 'cookies' | 'headers' | 'params'>;
}) => ResponseOrUnwrap<Res> : (options: TuyauQueryOptions & {
- query: Request;
+ query?: Omit<Request, 'cookies' | 'headers' | 'params'>;
}) => ResponseOrUnwrap<Res> : {} extends Request ? (body?: Request | null, options?: TuyauQueryOptions) => ResponseOrUnwrap<Res> : (body: Request, options?: TuyauQueryOptions) => ResponseOrUnwrap<Res> : K extends '$url' ? () => string : CreateParams<Route[K]>;
};
type CreateParams<Route extends Record<string, any>> = Extract<keyof Route, `:${string}`> extends infer Path extends string ? IsNever<Path> extends true ? Prettify<TuyauRpcClient<Route>> : ((params: {