bootstrap-styled / v4

:rocket: twbs/bootstrap V4 UI Components made with bootstrap-styled. Work with css-in-js, react, styled-components, and Bootstrap Styled utilities
https://bootstrap-styled.github.io/v4
MIT License
117 stars 22 forks source link

TypeScript #157

Open vinterdo opened 5 years ago

vinterdo commented 5 years ago

v4

Issue Type

Description

Typings file (index.d.ts) contain invalid typings. Not only they are not compiling (typos, using "bool" instead of "boolean", "function" instead of "Function", but also they prevent me from using bootstrap styled-components (eg. components are not accepting props like a name on button, causing compilation error)

The temporary workaround is to manually delete typings file from node_modules. It works just fine then. Problem is that this workaround is fine when I'm developing on my pc, pretty unusable on the CI server.

Steps to reproduce

Just use bootstrap-styled in any typescript project... It won't compile

Versions

kopax commented 5 years ago

We have removed the typings until we found typescript contributor.

Please use https://github.com/bootstrap-styled/bootstrap-styled/issues/83 for typescript discussion in bootstrap-styled