File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
packages/react-router-dev/typegen Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 117117- ericschn
118118- esadek
119119- faergeek
120+ - fernandojbf
120121- FilipJirsak
121122- focusotter
122123- foxscotch
Original file line number Diff line number Diff line change @@ -205,13 +205,15 @@ function routeModulesType(ctx: Context) {
205205 t . tsPropertySignature (
206206 t . stringLiteral ( route . id ) ,
207207 t . tsTypeAnnotation (
208- t . tsTypeQuery (
209- t . tsImportType (
210- t . stringLiteral (
211- `./${ Path . relative ( ctx . rootDirectory , ctx . config . appDirectory ) } /${ route . file } ` ,
212- ) ,
213- ) ,
214- ) ,
208+ isInAppDirectory ( ctx , route . file )
209+ ? t . tsTypeQuery (
210+ t . tsImportType (
211+ t . stringLiteral (
212+ `./${ Path . relative ( ctx . rootDirectory , ctx . config . appDirectory ) } /${ route . file } ` ,
213+ ) ,
214+ ) ,
215+ )
216+ : t . tsUnknownKeyword ( ) ,
215217 ) ,
216218 ) ,
217219 ) ,
You can’t perform that action at this time.
0 commit comments