Interface UnitOptions

interface UnitOptions {
    aliases?: string[];
    baseName: string;
    definitions?: UnitDefinition[];
    name?: string;
    override?: boolean;
    prefixes?: UnitPrefixType;
}

Properties

aliases?: string[]

Optional aliases

baseName: string

Base unit name

definitions?: UnitDefinition[]

Definitions of the unit

name?: string

Name of the unit

override?: boolean

Override existing units with the same name

prefixes?: UnitPrefixType

Prefix type to use