Skip to content

Commit a3bdffd

Browse files
committed
refactor(router-core): change proper NotFoundRouteProps type definition
Signed-off-by: leesb971204 <[email protected]>
1 parent f907711 commit a3bdffd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/router-core/src/route.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1322,10 +1322,7 @@ export type ErrorComponentProps<TError = Error> = {
13221322
info?: { componentStack: string }
13231323
reset: () => void
13241324
}
1325-
export type NotFoundRouteProps = {
1326-
// TODO: Make sure this is `| null | undefined` (this is for global not-founds)
1327-
data: unknown
1328-
}
1325+
export type NotFoundRouteProps = Partial<NotFoundError>
13291326

13301327
export class BaseRoute<
13311328
in out TParentRoute extends AnyRoute = AnyRoute,

0 commit comments

Comments
 (0)