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

@types/react-retool npm module #34

Open
canscaw28 opened this issue Oct 23, 2022 · 7 comments
Open

@types/react-retool npm module #34

canscaw28 opened this issue Oct 23, 2022 · 7 comments

Comments

@canscaw28
Copy link

canscaw28 commented Oct 23, 2022

Would be great if we had @types/react-tool npm module, even if it's trivial

Could not find a declaration file for module 'react-retool'.
'/node_modules/react-retool/index.js'
implicitly has an 'any' type. Try `npm i --save-dev @types/react-retool` if it exists
or add a new declaration (.d.ts) file containing `declare module 'react-retool';`ts(7016)
@lucasbaze
Copy link

+1

@darshanjain-entrepreneur

can you explain the bit what we have to do

@jtechbit
Copy link

I got around this by creating a file in root 'react-retool.d.ts':

declare module 'react-retool' {
    export const Retool: any;
  }

@lhtdesignde
Copy link

Or just declare module 'react-retool'; in a .d.ts file. But would be really nice to get types.

@ABorovenskyi
Copy link

+1

2 similar comments
@darshanjain-entrepreneur

+1

@fleonard
Copy link

+1

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

7 participants