You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails to recognise any source types.
But if index.ts is changed to modelOne.ts then the types from modelOne work as expected.
This means that unless all types/models are stored in a single file (who does that???) then we have to manually specify every model file. This gets very laborious when we have hundreds of files.
The text was updated successfully, but these errors were encountered:
{alias: 'models',module: path.join(__dirname.replace(/\/dist$/,'/src'),'./moduleOne/index.ts'),typeMatch: type=>[newRegExp(`(${type.name}[ ,]+)`)],// Note: This will match any declared type in models if the name matches},
That is what I do for my projects and it works well.
sourceTypes
fails to find any types unless the exact file that contains the type declaration is specified.i.e.
This fails to recognise any source types.
But if
index.ts
is changed tomodelOne.ts
then the types frommodelOne
work as expected.This means that unless all types/models are stored in a single file (who does that???) then we have to manually specify every model file. This gets very laborious when we have hundreds of files.
The text was updated successfully, but these errors were encountered: