zaml
zaml copied to clipboard
TSC: Type 'boolean' is not assignable to type 'false'.
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...