-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Encountered compilation errors related to SharedArrayBuffer #51
Comments
We have @SamVerschueren Any ideas? |
You can set |
On the other hand, if you want to use the type definitions, you as a consumer also needs to know what SharedArrayBuffer is. So the error might make sense. |
This boils down to the fact that the TypeScript compiler does not attempt to remove references to Now specifically in the case of this project it just so happens that the I can think of a couple ways to close this issue:
If folks 👍 one or the other of these approaches I'd be happy to take a stab at the "fix". |
I'm ok with this. I don't think many would use this check yet anyway. We can reintroduce it some time in the future. @carnesen Would you be able to open an issue on the TypeScript issue tracker about this? There really should be a way for a library to include |
I found a different workaround for this. TypeScript 3.1.1 fixes microsoft/TypeScript#26497, which means it now preserves directives. So the workaround is to duplicate the tslint config lib property as directives. Annoying to have to duplicate this, but at least it fixes the problem for now. |
TypeScript issue: microsoft/TypeScript#27416 |
When using
@sindresorhus/is@^0.9.0
, I am encountering the following error message when compiling TypeScript code that imports the module:The following are all of the relevant files in the workspace.
package.json
tsconfig.json
src/index.ts
The text was updated successfully, but these errors were encountered: