ResolveTargetsProps
Defined in: packages/core/src/revalidate/resolveTargets.ts:10
Input to resolveTargets.
Properties
Section titled “Properties”after?
Section titled “after?”
optionalafter?:Partial<VexDocument>
Defined in: packages/core/src/revalidate/resolveTargets.ts:12
Document state after the write. Omit for "delete".
before?
Section titled “before?”
optionalbefore?:Partial<VexDocument>
Defined in: packages/core/src/revalidate/resolveTargets.ts:14
Document state before the write. Omit for "create".
collection
Section titled “collection”collection:
string
Defined in: packages/core/src/revalidate/resolveTargets.ts:16
Slug of the collection the write occurred against.
map:
VexRouteMapper
Defined in: packages/core/src/revalidate/resolveTargets.ts:18
The project’s route map, from vex.config.ts’s routes.map.
operation
Section titled “operation”operation:
CrudWriteAction
Defined in: packages/core/src/revalidate/resolveTargets.ts:20
CRUD operation that triggered the write.