Skip to main content

Type Alias: UnitOfNumber<N>

UnitOfNumber<N> = N extends NumberUnitInterface<string, infer U> ? U : never

Defined in: src/sdk/math/NumberUnit.ts:11

Utility type to get the Unit type from a NumberUnit type.

Type Parameters

Type Parameter
N extends NumberUnitInterface<string>