Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/pricing / / diffPricing
Function: diffPricing()
ts
function diffPricing(before, after): readonly PricingDiffEntry[];Defined in: pricing/src/diff.ts:27
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[]