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

Usage in Typescript #48

Open
Purus opened this issue Jun 9, 2020 · 2 comments
Open

Usage in Typescript #48

Purus opened this issue Jun 9, 2020 · 2 comments

Comments

@Purus
Copy link

Purus commented Jun 9, 2020

Can you please let me about using this in TypeScript. currently there are no typings available.

Error:

  Try `npm install @types/isomorphic-git__lightning-fs` if it exists or add a new declaration (.d.ts) file containing `declare module '@isomorphic-git/lightning-fs';`ts(7016)
@raldone01
Copy link
Contributor

See my pull request.

@jesseditson
Copy link
Contributor

Looks like this PR was landed, and also a DT package was published since this issue was created, although it needs adjustment to work correctly in strict mode (see: DefinitelyTyped/DefinitelyTyped#58917).

Is there a maintainer who can publish a new package to npm including the index.d.ts from #51? Or should we improve the DT types?

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

3 participants