MCPcopy
hub / github.com/decaporg/decap-cms / EncodeContext

Interface EncodeContext

packages/decap-cms-core/src/lib/stega.ts:11–15  ·  view source on GitHub ↗

* Context passed to encode functions, containing the current state of the encoding process

Source from the content-addressed store, hash-verified

9 * Context passed to encode functions, containing the current state of the encoding process
10 */
11interface EncodeContext {
12 fields: CmsField[]; // Available CMS fields at current level
13 path: string; // Path to current value in object tree
14 visit: (value: unknown, fields: CmsField[], path: string) => unknown; // Visitor for recursive traversal
15}
16
17/**
18 * Get the fields that should be used for encoding nested values

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected