Skip to content

Faster but less complete TypeScript types for styled-components/native

Notifications You must be signed in to change notification settings

karugamo/faster-styled-components-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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-native

Then install the alternative typings:

npm i faster-styled-components-types

Since 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/"]
  }
}

About

Faster but less complete TypeScript types for styled-components/native

Resources

Stars

Watchers

Forks

Packages

No packages published