@enonic/mock-xp
Version:
Mock Enonic XP API JavaScript Library
13 lines (9 loc) • 294 B
TypeScript
import type { RepoNodeWithData } from './node.d';
export interface NodeModifyParams // <NodeData>
{
// Path or ID of the node
key: string;
// Editor callback function
// editor: (node: NodeData & RepoNode) => NodeData & RepoNode;
editor: (node: RepoNodeWithData) => RepoNodeWithData;
}