@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) • 486 B
TypeScript
import { TimeValue } from '../types';
/**
* Parses a CSS time value into structured components
* @param value - The CSS time value string
* @returns Parsed time object or null if invalid
*/
export declare function parse(value: string): TimeValue | null;
/**
* Converts a parsed time back to a CSS value string
* @param parsed - The parsed time object
* @returns CSS value string or null if invalid
*/
export declare function toCSSValue(parsed: TimeValue | null): string | null;