Skip to content

Type change to allow typescript > 2.7.2 #421

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

Merged
merged 1 commit into from
Aug 24, 2024
Merged

Conversation

3n-mb
Copy link
Contributor

@3n-mb 3n-mb commented Jun 9, 2022

Typescript versions greater than 2.7.2, keyof produces string|number|symbol, failing on line 40.

One fix is have on lines 19 and 22 Name extends string|number|symbol instead of Name extends string. But this work around may feel a bit not intuitive.

Change directly on line 40, & with string does the trick of fitting types.

Typescript versions greater than 2.7.2, `keyof` produces `string|number|symbol`, failing on line 40.

One fix is have on lines 19 and 22 `Name extends string|number|symbol` instead of `Name extends string`. But this work around may feel a bit not intuitive.

Change directly on line 40, `&` with `string` does the trick of fitting types.
@r-miladi
Copy link

Might it be possible to get this PR accepted?

@brianc brianc merged commit cc15b67 into brianc:master Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants