@fractorysolutions/safe-units
Version:
Type-safe TypeScript units of measure
9 lines (8 loc) • 433 B
TypeScript
import { Exponent } from "./generated/exponent";
export declare function getExponentValue(value: Exponent): number;
export declare const negateExponent: (value: Exponent) => Exponent;
export declare const addExponents: BinaryExponentFn;
export declare const multiplyExponents: BinaryExponentFn;
export declare const divideExponents: BinaryExponentFn;
type BinaryExponentFn = (left: Exponent, right: Exponent) => Exponent;
export {};