EntityDecl

tagtree · /core·interface

Declares a single entity within a cache schema, specifying the optional params it accepts for leaf-level key building and the parent entity names whose cache entries should also be invalidated when this entity is purged.

Properties

params?
P
parents?
R

Example

const entities = {
    product: { params: { id: str } },
    collection: { params: { handle: str }, parents: ['product'] },
} satisfies EntitiesMap;

ContractTestOptions runAdapterContract AdapterCtx CacheAdapter CacheInstance CacheKey CacheSchema CacheSchemaShape

Sourcetypes.ts:77Edit the JSDoc directly

On this page