-
-
Notifications
You must be signed in to change notification settings - Fork 669
Cannot find global type 'CallableFunction' #2646
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
Comments
Seems we'll need to declare a mock |
I ran into this as well. Turns out newer versions of TypeScript have stricter typing for For now, you can disable these newer types by changing your project's {
"extends": "assemblyscript/std/assembly.json",
"include": [
"./**/*.ts"
],
"compilerOptions": {
"strictBindCallApply": false
}
} |
Thanks for posting this workaround @neodon! I tried it in a project and can confirm it suppresses the new errors from the |
Bug description
Opening an assemblyscript project with vscode results in the error "Cannot find global type 'CallableFunction'" from the
tsconfig.json
. It looks like this is caused by thenoLib
being true and no global definition forCallableFunction
in the assemblyscript d.ts files. This only started for me after I updated to the latest version of vscode which I'm under the impression comes with a bundled version of typescript.I found some folks on so are having the same problem with no resolution but I wasn't able to find an issue here so creating one.
https://stackoverflow.com/questions/74438208/cannot-find-global-type-callablefunction-error-in-tsconfig-json-file
Steps to reproduce
Open an assemblyscript project with vscode v1.75.0 then edit any ts file.
AssemblyScript version
v0.26.7
The text was updated successfully, but these errors were encountered: