Skip to content

Type change to allow typescript > 2.7.2 - #421

Merged
brianc merged 1 commit into
brianc:masterfrom
3n-mb:patch-2
Aug 24, 2024
Merged

Type change to allow typescript > 2.7.2#421
brianc merged 1 commit into
brianc:masterfrom
3n-mb:patch-2

Conversation

@3n-mb

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

Copy link
Copy Markdown
Contributor

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
Copy Markdown

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