@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
14 lines (13 loc) • 494 B
TypeScript
import { AngleValue } from '../types';
/**
* Parses a CSS angle value into structured components
* @param value - The CSS angle value string
* @returns Parsed angle object or null if invalid
*/
export declare function parse(value: string): AngleValue | null;
/**
* Converts a parsed angle back to a CSS value string
* @param parsed - The parsed angle object
* @returns CSS value string or null if invalid
*/
export declare function toCSSValue(parsed: AngleValue | null): string | null;