UNPKG

@eristack/rounding-policy

Version:

Named rounding profiles that resolve to @eristack/money Rounding operators

11 lines • 472 B
import { type MonetaryOperator } from "@eristack/money"; import type { RoundingPolicyDefinition } from "./types.js"; export declare function createRoundingPolicyRegistry(initial?: RoundingPolicyDefinition[]): { registerPolicy: (def: RoundingPolicyDefinition) => void; roundingFor: (args: { policyId: string; currency?: string; }) => MonetaryOperator; listPolicies: () => RoundingPolicyDefinition[]; }; //# sourceMappingURL=registry.d.ts.map