@phensley/cldr-core
Version:
Core library for @phensley/cldr
18 lines (17 loc) • 424 B
TypeScript
import { UnitType } from '@phensley/cldr-schema';
import { DecimalFormatOptions } from './numbers';
import { Decimal } from '../types/numbers';
/**
* @alpha
*/
export interface Quantity {
value: number | string | Decimal;
unit?: UnitType;
}
export declare type UnitLength = 'short' | 'narrow' | 'long';
/**
* @alpha
*/
export interface UnitFormatOptions extends DecimalFormatOptions {
length?: UnitLength;
}