ParamMap

tagtree · /core·type

Type constraint for the params field of an EntityDecl; maps param names to their ParamType brand tokens, which ParamValues later unfolds into concrete string or number values.

Definition

@nordcom/commerce-tagtree
type ParamMap = Record<string, ParamType>;

Record<string, ParamType>

Example

const productParams: ParamMap = { id: str, version: num };

ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchema CacheSchemaShape

Sourcetypes.ts:47Edit the JSDoc directly

On this page