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
Notice how the type is correct for test3 but not for test2, that just defaults to Object. This stops me reusing existing Types in the app and forces me to write a class version of them all.
Even weirder is if you change the type Thing to an interface, the property test2 doesn't get generated in the metadata at all.
Minimum reproduction code
See above
Steps to reproduce
No response
Expected behavior
Types to be honoured when generating metadata
Package version
7.3.1
NestJS version
10.3.9
Node.js version
22
In which operating systems have you tested?
macOS
Windows
Linux
Other
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current behavior
I'm not sure if this should work, given this example:
You get:
Notice how the type is correct for
test3
but not fortest2
, that just defaults toObject
. This stops me reusing existingTypes
in the app and forces me to write a class version of them all.Even weirder is if you change the
type Thing
to aninterface
, the propertytest2
doesn't get generated in the metadata at all.Minimum reproduction code
See above
Steps to reproduce
No response
Expected behavior
Types to be honoured when generating metadata
Package version
7.3.1
NestJS version
10.3.9
Node.js version
22
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: