Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/core / / Cost

Interface: Cost

Defined in: packages/core/src/types/usage.ts:24

Money figure attached to a Usage. Always carries a 3-letter currency code so that consumers can perform aggregation safely.

Stable

Properties

PropertyTypeDescriptionDefined in
amountnumberAmount in the smallest fractional unit of the declared currency.packages/core/src/types/usage.ts:26
currencystringISO-4217 currency code; default 'USD'.packages/core/src/types/usage.ts:28