Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/pricing / / diffPricing
Function: diffPricing()
ts
function diffPricing(before, after): readonly PricingDiffEntry[];Defined in: pricing/src/diff.ts:28
Stable
Compare two snapshots and return one entry per (provider, model) pair that has been added, removed, or changed. The result is sorted by (provider, model, kind) for deterministic output.
Parameters
| Parameter | Type |
|---|---|
before | PricingSnapshot |
after | PricingSnapshot |
Returns
readonly PricingDiffEntry[]