Skip to content

Type Alias: MintingWriteAction

ts
type MintingWriteAction = "create" | "clone";

Defined in: common.ts:72

Document service actions that change content, and so must invalidate.

create and clone mint a new documentId that only exists on the result; every other action carries it on the params. Modelling that as a union stops the two being confused.

See

https://github.com/strapi-community/plugin-rest-cache/issues/129