rebass-preset is missing typescript definitions

Created on 22 Apr 2020  路  7Comments  路  Source: rebassjs/rebass

When trying to use rebass with the rebass preset in typescript following issue occurs.

Could not find a declaration file for module '@rebass/preset'. '/Users/marco/code/my-project/node_modules/@rebass/preset/dist/index.js' implicitly has an 'any' type.
  Try `npm install @types/rebass__preset` if it exists or add a new declaration (.d.ts) file containing `declare module '@rebass/preset';`ts(7016)

The @types/rebass__preset package is not available.

Would be great if this would be supported.

Most helpful comment

+1

All 7 comments

+1

+1

+1

+1

+1

+1

This library is written in JavaScript. You'll need to handle TypeScript in the definitely typed repo

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JaKXz picture JaKXz  路  4Comments

jxnblk picture jxnblk  路  5Comments

contra picture contra  路  4Comments

steida picture steida  路  4Comments

mberneti picture mberneti  路  5Comments