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