-
Notifications
You must be signed in to change notification settings - Fork 36
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
TypeScript build error on strict=true #52
Comments
can you make a PR? we're happy to accept it — |
Thanks for the guidance, I eventually looked into it, see #98 |
Ah you had it all figured out already, I just spent about 20 minutes coming to the exact same conclusion. The fix wasn't quite so simple though, Couldn't find any docs on v2 at all, ended up looking at the package.json in this repo to even figure out what the name of the package was, so it was a bit painful. Now though it all works, compiles fine, and I like the camel case vars much better so it's looking good! By the way, it likely compiles in the repo but not in your project because they set |
I'm consuming chain-registry 1.20.0 with
"strict": true
in mytsconfig.json
which leads to the following error:This is my tsconfig.json
While the error could be fixed by the consuming project by using
"skipLibCheck": true
, I thought it might not be a bad idea if chain-registry type definition was also honoring strict.The change doesn't seem too painful to make it comply.
Basically in
types/types/chains.d.ts
we need to change this line:By that one (not the
undefined
at the end):By the way, are the types generated for the project or hand written? Because the address, provider, archive block could have its own subtype to be reused and make the code more readable (I would be happy to PR).
The text was updated successfully, but these errors were encountered: