From d1e5a2a955438f5d859a155704e31b3ba80ccc3b Mon Sep 17 00:00:00 2001 From: Tyler <26290074+thegitduck@users.noreply.github.com> Date: Sat, 7 Sep 2024 12:26:37 -0700 Subject: [PATCH] chore: rename PagePath back to Path to reduce diff --- packages/waku/src/router/create-pages.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/waku/src/router/create-pages.ts b/packages/waku/src/router/create-pages.ts index 9583e38b0..a16b1eac1 100644 --- a/packages/waku/src/router/create-pages.ts +++ b/packages/waku/src/router/create-pages.ts @@ -147,7 +147,7 @@ export type PathWithWildcard< > = PathWithSlug; export type CreatePage = < - PagePath extends string, + Path extends string, SlugKey extends string, WildSlugKey extends string, Render extends 'static' | 'dynamic', @@ -155,23 +155,23 @@ export type CreatePage = < page: ( | { render: Extract; - path: PathWithoutSlug; + path: PathWithoutSlug; component: FunctionComponent; } | { render: Extract; - path: PathWithStaticSlugs; - staticPaths: StaticSlugRoutePaths; + path: PathWithStaticSlugs; + staticPaths: StaticSlugRoutePaths; component: FunctionComponent>; } | { render: Extract; - path: PathWithoutSlug; + path: PathWithoutSlug; component: FunctionComponent; } | { render: Extract; - path: PathWithWildcard; + path: PathWithWildcard; component: FunctionComponent< RouteProps & Record & Record >;