Function stypSplitPriority

  • Splits undefined CSS property value onto non-prioritized value and priority.

    Type Parameters

    Parameters

    • value: undefined

      Undefined CSS property value to split.

    Returns [undefined, 0]

    An [undefined, 0] tuple.

  • Splits string CSS property value onto non-prioritized value and priority.

    Parameters

    • value: string

      CSS property value to split.

    Returns [string, 0 | 1]

    A tuple containing the value without !priority suffix, and numeric priority (0 or 1).

  • Splits scalar CSS property value onto non-prioritized value and priority.

    Type Parameters

    • T extends number | boolean

    Parameters

    • value: T

      CSS property value to split.

    Returns [T, 0]

    A tuple containing the value and 0 priority.

  • Splits arbitrary CSS property value onto value non-prioritized value and priority.

    Type Parameters

    Parameters

    • value: T

      CSS property value to split.

    Returns [T, number]

    A tuple containing the value and numeric priority.

Generated using TypeDoc