Interface UnitZero<TUnit>

A kind of dimension which zero value has unit. E.g. frequency or resolution.

Type Parameters

  • TUnit extends string

    Allowed units type.

Hierarchy

  • Kind<TUnit>
    • UnitZero

Properties

Methods

Properties

noPt: UnitZero<Exclude<TUnit, "%">>

A similar kind of dimensions supporting all units this one supports, except percents (%).

undefined if there is no such dimension kind. Refers itself if does not support percents.

pt?: UnitZero<"%" | TUnit>

A similar kind of dimensions supporting all units this one supports and, in addition, supporting percents (%).

undefined if there is no such dimension kind. Refers itself if supports percents.

zero: StypDimension<TUnit>

Zero value of this kind that has unit.

Methods

Generated using TypeDoc