20 lines
1.3 KiB
Diff
20 lines
1.3 KiB
Diff
|
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: {
|