UNPKG

@wix/css-property-parser

Version:

A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance

15 lines (14 loc) 540 B
import { StringValue } from '../types'; /** * Parses a CSS string value into structured components * @param value - The CSS string value * @returns Parsed string object or null if invalid */ export declare function parse(value: string): StringValue | null; /** * Converts a parsed string back to a CSS value string * @param parsed - The parsed string object * @returns CSS value string or null if invalid */ export declare function toCSSValue(parsed: StringValue | null): string | null; export type { StringValue } from '../types';