You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
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
ornpm run build
give the following error:An explicit
acc: boolean
is enough to fix it. I haven't used TS in a while, I'm surprised it infersfalse
rather thanboolean
when you pass afalse
literal...The text was updated successfully, but these errors were encountered: