Skip to content

Commit de29111

Browse files
committed
test: fix type
1 parent 215c186 commit de29111

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/type.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ describe("infer param", () => {
66
it("empty path", () => {
77
expectTypeOf<InferParamPath<"/">>().toEqualTypeOf<{}>();
88
expectTypeOf<InferParamWildCard<"/">>().toEqualTypeOf<{}>();
9-
expectTypeOf<InferParam<"/">>().toEqualTypeOf<{}>();
9+
expectTypeOf<InferParam<"/">>().toEqualTypeOf<Record<string, any> | undefined>();
1010
});
1111
it("static path", () => {
1212
expectTypeOf<InferParamPath<"/static/path">>().toEqualTypeOf<{}>();
1313
expectTypeOf<InferParamWildCard<"/static/path">>().toEqualTypeOf<{}>();
14-
expectTypeOf<InferParam<"/static/path">>().toEqualTypeOf<{}>();
14+
expectTypeOf<InferParam<"/static/path">>().toEqualTypeOf<Record<string, any> | undefined>();
1515
});
1616
it("single param", () => {
1717
expectTypeOf<InferParamPath<"/user/:id">>().toEqualTypeOf<{ id: string }>();

0 commit comments

Comments
 (0)