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

TSC: Type 'boolean' is not assignable to type 'false'. #4

Open
pygy opened this issue Feb 23, 2020 · 0 comments
Open

TSC: Type 'boolean' is not assignable to type 'false'. #4

pygy opened this issue Feb 23, 2020 · 0 comments

Comments

@pygy
Copy link

pygy commented Feb 23, 2020

Hello @gilbert, I'm scouring github, looking for packages with a dependency on ospec, which is why I've tried to install this.

After a git clone, npm i or npm run build give the following error:

src/parser.ts:460:43 - error TS2769: No overload matches this call.
  [...snip...]
  Type 'boolean' is not assignable to type 'false'.
460   return Object.keys(block.schema).reduce((acc, key) => {

An explicit acc: boolean is enough to fix it. I haven't used TS in a while, I'm surprised it infers false rather than boolean when you pass a false literal...

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

1 participant