Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: SuggestionItem can't be PartialType of Item for some unknown reason #424

Open
Branchverse opened this issue Feb 18, 2023 · 0 comments
Labels
backend bug Something isn't working
Milestone

Comments

@Branchverse
Copy link
Contributor

Branchverse commented Feb 18, 2023

SuggestionItem extends PartialType(PickType(Item, ['name', 'image', 'source'] as const)) does not work

SuggestionWeight extends PartialType(Weight) does not work

Already tested ideas:

  • Item has a constructor => creating a BaseItem and have Item extend it does not fix it
  • Importing Partial/PickType from nestjs/swagger or mapped-types makes no difference

Assumption: @prop() decorator is lost on extend or Partial...

@Branchverse Branchverse added bug Something isn't working backend labels Feb 18, 2023
@Branchverse Branchverse added this to the Sprint 7 milestone Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant