• Coerces a raw value to a trimmed non-empty string.

    • string → trimmed; empty after trim → undefined
    • finite number → decimal string (legacy firmware timestamps)
    • all other types → undefined

    Parameters

    • raw: unknown

    Returns undefined | string