@wix/css-property-parser
Version:
A comprehensive TypeScript library for parsing and serializing CSS property values with full MDN specification compliance
18 lines (17 loc) • 710 B
TypeScript
import { BorderWidthPropertyValue } from './shared-border-width';
export type BorderLeftWidthValue = BorderWidthPropertyValue;
/**
* Parse a CSS border-left-width property string
* Accepts non-negative lengths and border width keywords (thin, medium, thick)
*
* @param value - The CSS border-left-width property value
* @returns Parsed border left width value or null if invalid
*/
export declare function parse(value: string): BorderLeftWidthValue;
/**
* Convert BorderLeftWidthValue back to CSS string
*
* @param parsed - The parsed border left width value
* @returns CSS string representation or null if invalid
*/
export declare function toCSSValue(parsed: BorderLeftWidthValue): string | null;