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
Demo:
type Obj = { readonly a: number; b: string; }; type A = ReadonlyKeys<Obj>; // "a" type B = WritableKeys<Obj>; // "b"
Can be based on https://stackoverflow.com/questions/49579094/typescript-conditional-types-filter-out-readonly-properties-pick-only-requir
The text was updated successfully, but these errors were encountered:
Yeah both of them are quite useful. Accepting PR's!
Sorry, something went wrong.
feat: added WritableKeys/ReadonlyKeys mapped types (#61)
eb78a15
Fixes #55
levenleven
No branches or pull requests
Demo:
Can be based on https://stackoverflow.com/questions/49579094/typescript-conditional-types-filter-out-readonly-properties-pick-only-requir
The text was updated successfully, but these errors were encountered: