Merge pull request #32670 from gretzky/master

[styled-system] Update typing for breakpoints
This commit is contained in:
Eloy Durán
2019-01-31 23:28:41 +01:00
committed by GitHub
+6 -3
View File
@@ -1,4 +1,4 @@
// Type definitions for styled-system 3.1
// Type definitions for styled-system 3.2
// Project: https://github.com/jxnblk/styled-system#readme
// Definitions by: Marshall Bowers <https://github.com/maxdeviant>
// Ben McCormick <https://github.com/phobon>
@@ -9,6 +9,7 @@
// Adam Lavin <https://github.com/lavoaster>
// Joachim Schuler <https://github.com/jschuler>
// Adam Misiorny <https://github.com/adam187>
// Sara F-P <https://github.com/gretzky>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@@ -41,7 +42,9 @@ export interface LowLevelStylefunctionArguments {
scale?: Array<string | number>;
}
export function style(args: LowLevelStylefunctionArguments): {[cssProp: string]: string};
export function style(
args: LowLevelStylefunctionArguments
): { [cssProp: string]: string };
export type TLengthStyledSystem = string | 0 | number;
export type ResponsiveValue<T> = T | Array<T | null> | { [key: string]: T };
@@ -100,7 +103,7 @@ export function variant(props: VariantArgs): (...args: any[]) => any;
export type ObjectOrArray<T> = T[] | { [K: string]: T };
export interface BaseTheme {
breakpoints?: number[];
breakpoints?: string[] | number[] | object;
colors?: ObjectOrArray<CSS.ColorProperty>;
fontSizes?: number[];
space?: number[];