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