aliascss
Version:
AliasCSS is a CSS post processor.
31 lines (30 loc) • 977 B
TypeScript
type Property = {
alias?: string;
property?: string;
type?: string;
values?: string[];
groups?: {
[key: string]: string;
};
compiler?: (...args: any[]) => any;
};
/**
* @param className : string
* @param cssPropertiesWithAlias: Compiler Object
* @param staticClassNames : StaticClassNames
* @param custom : custom values for color, font, etc
* @param extractProperty :extractProperty(className:string,cssPropertiesWithAlias:{[key:string]:Property})=>[Property,string]
* @param bool : return[property,value] or property:value
* @returns {string[]|null|{}}
*/
export default function getPropertyAndValue(className: string, cssPropertiesWithAlias: {
[key: string]: Property;
}, staticClassNames: {
[key: string]: string;
}, custom: {
[key: string]: {
[key: string]: string;
};
}, extractProperty: any, // (a:string,b:{[key:string]:Property})=>[Property,string],
bool?: boolean): string[] | null | {};
export {};