'use strict'; import type { NonMutable, ValueProcessor, ValueProcessorContext, } from '../types'; export function processStyleValue( processor: ValueProcessor, value: NonMutable, context?: ValueProcessorContext ) { 'worklet'; // CSS strips whitespace around a declaration value, so processors can // assume they are given a trimmed string. const normalizedValue = ( typeof value === 'string' ? value.trim() : value ) as NonMutable; return processor(normalizedValue, context); }