Skip to content

Commit 03952aa

Browse files
committed
fix: fallback type of InferParam
1 parent cb4532c commit 03952aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export type InferInputMethod<
107107
export type InferParam<Path extends string> = IsEmptyObject<
108108
InferParamPath<Path> & InferParamWildCard<Path>
109109
> extends true
110-
? {}
110+
? Record<string, any> | undefined
111111
: Prettify<InferParamPath<Path> & InferParamWildCard<Path>>;
112112

113113
export type InferParamInput<Path extends string> = IsEmptyObject<

0 commit comments

Comments
 (0)