@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
12 lines (11 loc) • 512 B
TypeScript
import { TextDecorationValue } from '../types';
export type { TextDecorationValue } from '../types';
/**
* Parses a CSS text-decoration property string into structured components
* Follows MDN specification: https://developer.mozilla.org/en-US/docs/Web/CSS/text-decoration
*/
export declare function parse(value: string): TextDecorationValue | null;
/**
* Converts a parsed text-decoration back to a CSS value string
*/
export declare function toCSSValue(parsed: TextDecorationValue | null): string | null;