tryretool / react-retool

MIT License
39 stars 13 forks source link

@types/react-retool npm module #34

Open canscaw28 opened 1 year ago

canscaw28 commented 1 year ago

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 commented 1 year ago

+1

darshanjain-entrepreneur commented 1 year ago

can you explain the bit what we have to do

jtechbit commented 10 months ago

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

declare module 'react-retool' {
    export const Retool: any;
  }
lhtdesignde commented 7 months ago

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

ABorovenskyi commented 2 months ago

+1

darshanjain-entrepreneur commented 2 months ago

+1

fleonard commented 1 month ago

+1