csx
Version:
Utility functions for TypeStyle
41 lines (40 loc) • 1.12 kB
TypeScript
/**
* Returns the number with a suffix of %
*/
export declare const percent: (val: number) => string | number;
/**
* Returns the number with a suffix of deg
*/
export declare const deg: (val: number) => string | number;
/**
* Returns the number with a suffix of em
*/
export declare const em: (val: number) => string | number;
/**
* Returns the number with a suffix of ex
*/
export declare const ex: (val: number) => string | number;
/**
* Returns the number with a suffix of px
*/
export declare const px: (val: number) => string | number;
/**
* Returns the number with a suffix of rad
*/
export declare const rad: (val: number) => string | number;
/**
* Returns the number with a suffix of rem
*/
export declare const rem: (val: number) => string | number;
/**
* Returns the number with a suffix of vh
*/
export declare const viewHeight: (val: number) => string | number;
/**
* Returns the number with a suffix of vw
*/
export declare const viewWidth: (val: number) => string | number;
/**
* Returns the number with a suffix of turn
*/
export declare const turn: (val: number) => string | number;