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
First of all, I'm really excited to learn of the existence of this project so thanks for that 👌
I'm trying to use it on the .d.ts files I've written for bugsnag-js which will be distributed with the project. In the past we've struggled with .d.ts files not being up to date with the JS code in the library, so what I really want is a program that verifies the correctness of the types that I can run as part of the tests.
When I try to execute tscheck against my library/types, I get the following error:
Error while executing library code
InvalidCharacterError: DOM Exception 5: An invalid or illegal character was specified, such as in an XML name.
phantomjs://code/jsnap1171022-20209-1k8owbv.q8yk:2800 in enqueue
phantomjs://code/jsnap1171022-20209-1k8owbv.q8yk:2800 in convertValue
phantomjs://code/jsnap1171022-20209-1k8owbv.q8yk:2768 in dump
phantomjs://code/jsnap1171022-20209-1k8owbv.q8yk:2823
Steps to reproduce
npm i -g tscheck
git clone [email protected]:bugsnag/bugsnag-js.git
cd bugsnag-js
git checkout 408ca0100f80aad2708a01de6df1d457502e50c8
npm run build
tscheck dist/bugsnag.js types/bugsnag.d.ts
software
version
tscheck
0.1.4
npm
5.4.2
node
8.3.0
typescript
2.6.1
The text was updated successfully, but these errors were encountered:
I have updated jsnap to use a newer version of phantomjs, which seems to resolve that particular issue.
Unfortunately, I haven't updated tscheck for years, so it only works for really old versions of TypeScript (something like 1.0). This means it won't be of much use to you.
However, I've recently started using TypeScript again so I might actually revive this project. But it's not going to be a quick fix so it will be a while.
First of all, I'm really excited to learn of the existence of this project so thanks for that 👌
I'm trying to use it on the .d.ts files I've written for bugsnag-js which will be distributed with the project. In the past we've struggled with .d.ts files not being up to date with the JS code in the library, so what I really want is a program that verifies the correctness of the types that I can run as part of the tests.
When I try to execute tscheck against my library/types, I get the following error:
Steps to reproduce
The text was updated successfully, but these errors were encountered: