Skip to content

SizeValue

Extends BaseValue<Size>

export type SizeRaw = string | number;
export type SizeObjectLiteral = {
value: number;
unit: SizeAbsoluteUnits;
};
export type SizeLiteral = SizeRaw | SizeObjectLiteral;
export type Size = {
value: number;
unit: SizeAbsoluteUnits;
toString: () => string;
};
export type SizeValueOptions = {
quantize?: number;
};
export type SizeValue = {
get: () => Size;
raw: () => number;
quantized: (quantize?: number) => number;
toString: (options?: SizeValueOptions) => string;
toObject: (options?: SizeValueOptions) => SizeObjectLiteral;
};