DefinitelyTyped/types/styled-system
Hammad Jutt 649d81b915
Improve styled-system type safety by using generics for all properties (#41903)
* Improve styled-system type safety by using generics for all properties

This allows for type safety for values in a theme using generics (e.g. you wont be allowed to use breakpoints that arent defined in your theme), as well as being able to  use styled-system in Platforms like React Native where the valid values for CSS properties are different.

The generics have been set to the defaults they were before, so backwards compatibility is preserved, but now you have the power to customize the typings to be specific to the values in your theme.

* Bump TS version to 2.9 in styled-system

* Set minimum TS version to 3.0 in styled-system

* Fix BackgroundColorProps type in styled-system to use ThemeValue

* Update typings to be compatable with TS 2.9

* Fix type errors from theme-ui and rebass

* Fix linting errors in theme-ui and styled-system
2020-01-30 20:57:13 +01:00
..
index.d.ts
package.json
styled-system-tests.tsx
tsconfig.json
tslint.json