-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Can I get the strict keys for an array somehow? #254
Comments
Hey! @millsp did it some time ago! You can use Some context: microsoft/TypeScript#30680 (comment) You can check it working here: |
You just made my day. @millsp what would we do without you? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🍩 Feature Request
I want to get the keys of an array of fixed length, without adding
as const
to the end of the array. I'm able to get the strict values of it, but not the keys.Describe the solution you'd like
I'd like to use a type factory to get the readonly keys of an array:
Describe alternatives you've considered
Code: https://codesandbox.io/s/ts-toolbelt-test-forked-89wql?file=/src/index.ts:0-396
Screenshots
Thank you!!
The text was updated successfully, but these errors were encountered: