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
[x ] used the search to make sure that a similar issue hasn't already been submit
Expected Behavior
I want to provide a type for an endpoint that dont use all relations in the schema of the ORM. So i need to extract all primitive types (NonRelationalMembers ) and nest the type of the relational members manualy
export type BaseProps = string | number | boolean | symbol | bigint | null | Date | undefined ;
There was a problem resolving type of 'Extract<ProjectDetail, BaseProps>'. There was a problem resolving type of 'UserProject'. Generate routes error. GenerateMetadataError: Unknown type: NeverKeyword At unknown position... This was caused by '<unknown name>' at TypeResolver.resolve (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:292:90) at TypeResolver.resolve (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:269:106) at ReferenceTransformer.transform (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\transformer\referenceTransformer.js:66:168) at calcReferenceType (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:740:99) at TypeResolver.getReferenceType (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:759:24) at TypeResolver.resolveTypeReferenceNode (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:468:21) at TypeResolver.resolve (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:293:21) at C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:120:118 at Array.reduce (<anonymous>) at TypeResolver.resolve (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:119:85)
Context (Environment)
Version of the library: ^6.5.1
Version of NodeJS: ^18
Version of ts: ^4.9.5
Update
there is an Workaround for the problem or a possible solution
The text was updated successfully, but these errors were encountered:
Sorting
I'm submitting a bug
I confirm that I
Expected Behavior
I want to provide a type for an endpoint that dont use all relations in the schema of the ORM. So i need to extract all primitive types (NonRelationalMembers ) and nest the type of the relational members manualy
export type BaseProps = string | number | boolean | symbol | bigint | null | Date | undefined ;
export type UserProject = { projectTeams: { projectDetail: Extract<ProjectDetail,BaseProps>; } & Extract<ProjectTeam,BaseProps>[]; } & Extract<Contact,BaseProps>;
or
Current Behavior
tsoa cannot resolve the type.
There was a problem resolving type of 'Extract<ProjectDetail, BaseProps>'. There was a problem resolving type of 'UserProject'. Generate routes error. GenerateMetadataError: Unknown type: NeverKeyword At unknown position... This was caused by '<unknown name>' at TypeResolver.resolve (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:292:90) at TypeResolver.resolve (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:269:106) at ReferenceTransformer.transform (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\transformer\referenceTransformer.js:66:168) at calcReferenceType (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:740:99) at TypeResolver.getReferenceType (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:759:24) at TypeResolver.resolveTypeReferenceNode (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:468:21) at TypeResolver.resolve (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:293:21) at C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:120:118 at Array.reduce (<anonymous>) at TypeResolver.resolve (C:\Data\space\PWX_Taskmanagement\mis-scf-nodets-pwx-data\node_modules\@tsoa\cli\dist\metadataGeneration\typeResolver.js:119:85)
Context (Environment)
Version of the library: ^6.5.1
Version of NodeJS: ^18
Version of ts: ^4.9.5
Update
there is an Workaround for the problem or a possible solution
The text was updated successfully, but these errors were encountered: