1.0.1 • Published 4 years ago
faster-styled-components-types v1.0.1
faster-styled-components-types
TypeScript types for styled-components that focus more on type checking quickly instead of complete like @types/styled-components
So far they only suport React Native, in the meanwhile check out this gist for React.
Installation
Make sure you don't have @types/styled-components or @types/styled-components-react-native installed.
npm r @types/styled-components @types/styled-components-react-nativeThen install the alternative typings:
npm i faster-styled-components-typesSince our types arer not prefixed with @types, you then need to
go to your tsconfig.json and change typeRoots to this:
{
"compilerOptions": {
"typeRoots": ["./node_modules/@types/", "./node_modules/faster-styled-components-types/"]
}
}