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

Typescript: Cannot find name 'Ink' #491

Open
dschinkel opened this issue Aug 7, 2020 · 1 comment
Open

Typescript: Cannot find name 'Ink' #491

dschinkel opened this issue Aug 7, 2020 · 1 comment

Comments

@dschinkel
Copy link

dschinkel commented Aug 7, 2020

Trying to figure out how I'm going to rid this typescript issue. I don't think there's a TS module for Ink is there? I'd like not to suppress it and get typing out of this because I have a rule that says no suppressing of TS in my project.

Screen Shot 2020-08-07 at 1 11 14 AM

@mariomc
Copy link
Contributor

mariomc commented Aug 24, 2020

You can add custom typings for a plain JS module into your TS module.
https://www.detroitlabs.com/blog/2018/02/28/adding-custom-type-definitions-to-a-third-party-library/
Once you do have some semblance of typing, you can raise a PR into DefinitelyTyped and have type security applied to that same module.

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

2 participants