We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can't inherit getter/setter and function.
import { PickType } from "@nestjs/mapped-types"; class A { foo: number; bar: number; get baz() { return this.foo; } } class B extends PickType(A, ['foo', 'baz']) {} const b = new B(); b.foo = 1; console.log(b.baz); // undefined
https://github.com/CodyTseng/example/blob/master/mapped-types/index.js
No response
Can inherit getter/setter and function.
import { PickType } from "@nestjs/mapped-types"; class A { foo: number; bar: number; get baz() { return this.foo; } } class B extends PickType(A, ['foo', 'baz']) {} const b = new B(); b.foo = 1; console.log(b.baz); // 1
1.1.0
16.14.2
The text was updated successfully, but these errors were encountered:
I think it would be useful to preserve at least getters because it seems that it's not currently the case.
Sorry, something went wrong.
I searched the previous issues and found that @kamilmysliwiec explicitly said that this feature will not be added #480, so I closed this issue 😭
No branches or pull requests
Is there an existing issue for this?
Current behavior
Can't inherit getter/setter and function.
Minimum reproduction code
https://github.com/CodyTseng/example/blob/master/mapped-types/index.js
Steps to reproduce
No response
Expected behavior
Can inherit getter/setter and function.
Package version
1.1.0
Node.js version
16.14.2
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: