UNPKG

@vitus-labs/rocketstyle

Version:

Rocketstyle is ultra powerful and extensible styling system for building React components blazingly fast, easily and make them easily extensible and reusable.

22 lines 1.01 kB
import type { MultiKeys } from "../types/dimensions"; type RemoveUndefinedProps = <T extends Record<string, any>>(props: T) => Partial<T>; export declare const removeUndefinedProps: RemoveUndefinedProps; type PickStyledAttrs = <T extends Record<string, any>, K extends { [I in keyof T]?: true; }>(props: T, keywords: K) => { [I in keyof K]: T[I]; }; export declare const pickStyledAttrs: PickStyledAttrs; type OptionFunc<A> = (...arg: A[]) => Record<string, unknown>; type CalculateChainOptions = <A>(options?: OptionFunc<A>[]) => (args: A[]) => ReturnType<OptionFunc<A>>; export declare const calculateChainOptions: CalculateChainOptions; type CalculateStylingAttrs = ({ useBooleans, multiKeys, }: { useBooleans?: boolean; multiKeys?: MultiKeys; }) => ({ props, dimensions, }: { props: Record<string, unknown>; dimensions: Record<string, unknown>; }) => Record<string, any>; export declare const calculateStylingAttrs: CalculateStylingAttrs; export {}; //# sourceMappingURL=attrs.d.ts.map