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

Error in $operation.d.ts when upgrading from typescript 2.8.x to 2.9.x #413

Closed
nihaux opened this issue Aug 23, 2018 · 2 comments
Closed

Comments

@nihaux
Copy link

nihaux commented Aug 23, 2018

Hello, when I upgrade from 2.8 to 2.9 I get this error:

node_modules/@types/ramda/src/$operation.d.ts
(15,54): Type 'keyof T' does not satisfy the constraint 'string'.
  Type 'string | number | symbol' is not assignable to type 'string'.
    Type 'number' is not assignable to type 'string'.

the typing in question

export type Omit<T, K extends string> = Pick<T, Diff<keyof T, K>>;

Is it an incompatibility or am I missing sth ?

@ikatyang
Copy link
Member

It seems you're using an old version, this should have been fixed by #404.

https://github.com/types/npm-ramda/blob/9529aa3c8ff70ff84afcbc0be83443c00f30ea90/src/%24operation.d.ts#L8

@nihaux
Copy link
Author

nihaux commented Aug 23, 2018

@ikatyang thx for the quick answer !
I had indeed an old version.
It was due to yarn having an old version of the package in cache.
If I may ask, why isn't there a release/version bump process with this package ? Wouldn't it avoir these kind of problem ?

@nihaux nihaux closed this as completed Aug 23, 2018
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

No branches or pull requests

2 participants