Skip to content

Commit 4f2cdec

Browse files
authored
fix(types): PageProps was missing type hints for paths (#1173)
this fix brings back the autocomplete for `PageProps`: <img width="638" alt="image" src="https://github.com/user-attachments/assets/e8f8633b-4fb7-4323-bc31-9d31c145282f" /> this was just missed in an earlier refactor of the types Co-authored-by: Tyler <[email protected]>
1 parent ecf1577 commit 4f2cdec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/waku/src/router/create-pages-utils/inferred-path-types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export type GetSlugs<Route extends string> = _GetSlugs<Route>;
169169

170170
/** Paths with slugs as string literals */
171171
export type PagePath<Config> = Config extends {
172-
pages: { DO_NOT_USE_pages: { path: infer Path } };
172+
pages: { path: infer Path };
173173
}
174174
? Path
175175
: never;

0 commit comments

Comments
 (0)