Skip to content

Type Alias: AcceptSpec<TSpec> ​

ts
type AcceptSpec<TSpec> = Omit<TSpec, keyof SharedTerms> & Partial<Omit<SharedTerms, "resource" | "description">>;

Defined in: packages/x402-express/src/options.ts:32

One way to pay: a scheme's spec minus the fields named once for all of them.

Most shared fields may still be set here to override them — a second instrument settling to a different party, say — but nothing has to be repeated. resource and description are not among them: a 402 names ONE resource (x402 v2 §5.1.2), so entries disagreeing about it would make the envelope describe one sale and its entries another.

Type Parameters ​

TSpec ​

TSpec extends BaseRequirementsSpec