Skip to content
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

Experiment with adding Typescript type declarations #26

Open
jimpick opened this issue Apr 7, 2020 · 0 comments
Open

Experiment with adding Typescript type declarations #26

jimpick opened this issue Apr 7, 2020 · 0 comments

Comments

@jimpick
Copy link
Member

jimpick commented Apr 7, 2020

We want to build the library with vanilla javascript so it runs in web browsers without a compile step, but many applications will want to use TypeScript for stronger types. We can add a declaration file:

https://www.typescriptlang.org/docs/handbook/declaration-files/introduction.html

The @filecoin-shipyard/js-lotus-client-rpc library dynamically handles the method invocations... one approach might be to do some code generation from the schema in order to generate the declarations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant