mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Update styled-system types to 3.1
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
Vendored
+2
-11
@@ -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';
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user