typestyle
Version:
24 lines (23 loc) • 842 B
TypeScript
import { MediaQuery, NestedCSSProperties } from '../types';
/** Raf for node + browser */
export declare const raf: (cb: () => void) => void;
/**
* Utility to join classes conditionally
*/
export declare function classes(...classes: (string | false | undefined | null | {
[className: string]: any;
})[]): string;
/**
* Merges various styles into a single style object.
* Note: if two objects have the same property the last one wins
*/
export declare function extend(...objects: (NestedCSSProperties | undefined | null | false)[]): NestedCSSProperties;
/**
* Utility to help customize styles with media queries. e.g.
* ```
* style(
* media({maxWidth:500}, {color:'red'})
* )
* ```
*/
export declare const media: (mediaQuery: MediaQuery, ...objects: (false | NestedCSSProperties | null | undefined)[]) => NestedCSSProperties;