Skip to content

Commit

Permalink
Merge pull request #18 from deadlinecode/patch-type-gen
Browse files Browse the repository at this point in the history
Naming fix
  • Loading branch information
kravetsone authored Aug 17, 2024
2 parents 880e051 + 0a1f1e2 commit cce8f5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ type FlattenIndexRoutes<T> = T extends object
? T[K] extends RouteEndType
? never
: K
: K]: FlattenIndex<T[K]>;
: K]: FlattenIndexRoutes<T[K]>;
} & (T extends { index: infer I }
? I extends RouteEndType
? FlattenIndex<I>
? FlattenIndexRoutes<I>
: {}
: {})
: T;
Expand Down

0 comments on commit cce8f5e

Please sign in to comment.