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
export class UpdateCatDto extends PartialType(CreateCatDto) {}
Results in
Uncaught TypeError: Class extends value () => {} is not a constructor or null
Describe the solution you'd like
DTOs should be usable outside of the backend.
The browser shim should at least properly return blank extendable classes to allow sharing the dto package with frontends.
Even better, the swagger annotations should be a separate module without dependencies on nestjs core etc.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
Mapped types do not work in the browser with the browser shim from #1505
In the shim:
Usage as per docs:
Results in
Describe the solution you'd like
DTOs should be usable outside of the backend.
The browser shim should at least properly return blank extendable classes to allow sharing the dto package with frontends.
Even better, the swagger annotations should be a separate module without dependencies on nestjs core etc.
Teachability, documentation, adoption, migration strategy
No response
What is the motivation / use case for changing the behavior?
Using DTOs outside of the backend project.
The text was updated successfully, but these errors were encountered: