Skip to content

Commit

Permalink
fix: 'string', not ''
Browse files Browse the repository at this point in the history
  • Loading branch information
DuCanhGH committed Mar 1, 2023
1 parent 402ec63 commit 407b68d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/next/src/build/webpack/plugins/next-types-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,10 @@ declare namespace __next_route_internal_types__ {
type OptionalCatchAllSlug<S extends string> =
S extends \`\${string}\${SearchOrHash}\` ? never : S
type StaticRoutes = ${staticRouteTypes || ''}
type DynamicRoutes<T extends string = string> = ${dynamicRouteTypes || ''}
type StaticRoutes = ${staticRouteTypes || 'string'}
type DynamicRoutes<T extends string = string> = ${
dynamicRouteTypes || 'string'
}
type RouteImpl<T> =
| StaticRoutes
Expand Down

0 comments on commit 407b68d

Please sign in to comment.