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 using type-fest with TypeScript version lower than 3.8.0 #240

Closed
adrianbrs opened this issue Aug 1, 2021 · 1 comment
Closed

Error using type-fest with TypeScript version lower than 3.8.0 #240

adrianbrs opened this issue Aug 1, 2021 · 1 comment

Comments

@adrianbrs
Copy link

adrianbrs commented Aug 1, 2021

When I try to use type-fest@1.3.0 in my Angular project with typescript@3.7.7 I get an error:

ERROR in node_modules/type-fest/source/typed-array.d.ts:1:21 - error TS2726: Cannot find lib definition for 'es2020.bigint'.

1 /// <reference lib="es2020.bigint"/>

As far as I can see, the es2020.bigint was introduced only in typescript@3.8.0.
microsoft/TypeScript#33871

I don't know if this error is expected, or if there is a workaround for this, because in the readme I saw that the minimum required version for TypeScript is 3.4.

Thanks.

@sindresorhus
Copy link
Owner

It's just a mistake in the readme.

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