-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
$ElementType does not work with keyofStringsOnly TS option #179
Comments
slightly better approach, does not exclude number when
|
Hey @Knagis , thanks for the report and solution, could you please submit a PR? |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
with
keyofStringsOnly: true
Steps to Reproduce
open https://www.typescriptlang.org/play?keyofStringsOnly=true&ssl=3&ssc=39&pln=1&pc=1#code/KYDwDg9gTgLgBAE2AYwDYEMrDjAnmbAEgFFVgBbYAOxgBV9gAeWuUGahAZzgG8AoOILgBtAApwAllTgBpOADI46KrgC6ALiUqA3HwC+AGlmsQ7KlzgBrYLggAzOCwA+cKgFdyAI2BQAfHABeR2EZVV0BQQB6SLhicBQYTU4YKCkAc10hPAI4USgIMG4gnld0SiSU9O0lNOBNdy8faoA3CU4JTzJNTwgIMmU4PUzBbOwAOTLgehygkjJKGmmmPILOIwByKkn133ChaNj45ES4Hr7gZQicBkc3MDJAkTP+qiMG7ygwq9G4AEFHuYUah0BjMO5kDYABh2wzgBziBGO9Q8H2+NwAQgDSEDFqDaODgBsAIwwvhXeFHE7PC5UNE5X5QKCPanKYRfLI3ACS7HInCWWPmwKWjAZUDeKJ8uzJ+xiCISyMaUDp2AA8p4AFaPErCay4CqpKhpDSuCVMobKuAANXQqDcwD5N1m2IWIIIjDV6qMyQNaSlQA
Expected behavior
no TS compilation errors
Suggested solution(s)
this passes the examples given in the file for both when
keyofStringsOnly
is enabled and disabled.Project Dependencies
The text was updated successfully, but these errors were encountered: