UNPKG

@wix/css-property-parser

Version:

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

11 lines (10 loc) 440 B
import type { LineHeightValue } from '../types'; /** * Parses a CSS line-height property string into structured components * Follows MDN specification: https://developer.mozilla.org/en-US/docs/Web/CSS/line-height */ export declare function parse(value: string): LineHeightValue | null; /** * Converts a parsed line-height back to a CSS value string */ export declare function toCSSValue(parsed: LineHeightValue | null): string | null;