Update styled-system types to 3.1

This commit is contained in:
Anton Vasin
2018-12-19 16:35:06 +03:00
parent bc43dc9295
commit 7c0c4e8419
3 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export function merge(a: any, b: any): any;
export function compose(...funcs: Array<(...args: any[]) => any>): (...args: any[]) => any;
export function createMediaQuery(n: string): string;
export function createMediaQuery(n: any): string;
export interface LowLevelStylefunctionArguments {
prop: string;
+2 -11
View File
@@ -1,4 +1,4 @@
// Type definitions for styled-system 3.0
// Type definitions for styled-system 3.1
// Project: https://github.com/jxnblk/styled-system#readme
// Definitions by: Marshall Bowers <https://github.com/maxdeviant>
// Ben McCormick <https://github.com/phobon>
@@ -11,16 +11,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as util from './dist/util';
export { util };
export {
style,
themeGet,
merge,
compose,
} from './dist/util';
export * from './dist/util';
export * from './dist/styles';
export * from './dist/variant';
export * from './dist/mixed';
+9 -1
View File
@@ -122,12 +122,20 @@ import {
ButtonStyleProps,
MixedProps,
VerticalAlignProps,
verticalAlign
verticalAlign,
px,
createMediaQuery
} from "styled-system";
// tslint:disable-next-line:strict-export-declare-modifiers
declare const styled: (...props: any[]) => React.ComponentType;
const breakpoints = [480, 960];
const breakpointsPx = breakpoints.map(px);
const mediaQueries = breakpoints.map(createMediaQuery);
const boxStyle = variant({
prop: 'boxStyle',
key: 'box',