Skip to content
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

fix: typing errors with typescript 4.8 #97

Closed
dargmuesli opened this issue Aug 26, 2022 · 3 comments · Fixed by #98
Closed

fix: typing errors with typescript 4.8 #97

dargmuesli opened this issue Aug 26, 2022 · 3 comments · Fixed by #98

Comments

@dargmuesli
Copy link

Some typing does not seem to work fine with typescript 4.8.2: https://github.com/maevsi/stomper/runs/8039281506?check_suite_focus=true#step:5:174

#14 23.69 node_modules/camelcase-keys/index.d.ts(49,44): error TS2344: Type 'T[P]' does not satisfy the constraint 'readonly any[] | Record<string, any>'.
#14 23.69   Type 'T[keyof T]' is not assignable to type 'readonly any[] | Record<string, any>'.
#14 23.69     Type 'T[string] | T[number] | T[symbol]' is not assignable to type 'readonly any[] | Record<string, any>'.
#14 23.69       Type 'T[string]' is not assignable to type 'readonly any[] | Record<string, any>'.
#14 23.69         Type 'T[string]' is not assignable to type 'readonly any[]'.
#14 23.69           Type 'T[keyof T]' is not assignable to type 'readonly any[]'.
#14 23.69             Type 'T[P]' is not assignable to type 'readonly any[]'.
#14 23.69               Type 'T[keyof T]' is not assignable to type 'readonly any[]'.
#14 23.69                 Type 'T[string] | T[number] | T[symbol]' is not assignable to type 'readonly any[]'.
#14 23.69                   Type 'T[string]' is not assignable to type 'readonly any[]'.
#14 23.70 node_modules/camelcase-keys/index.d.ts(52,4): error TS2344: Type 'T[P]' does not satisfy the constraint 'readonly any[] | Record<string, any>'.
@sindresorhus
Copy link
Owner

// @Masa-Shin @g-plane

@Masa-Shin
Copy link
Contributor

Masa-Shin commented Aug 29, 2022

It seems that this occurs with even older versions of camelcase-keys (I don't know why). I will look into it.

@Masa-Shin
Copy link
Contributor

PR: #98

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 a pull request may close this issue.

3 participants