import { InjectionKey, Slots } from "vue"; export const TreeInjectionKey: InjectionKey = Symbol('TreeInjectionKey'); type TreeContext = Readonly<{ // renderNode: TypeWithUndefined; // renderIcon: TypeWithUndefined; slots: Slots; // expandedKeys: Set; // getSelectedNode: () => TypeWithUndefined; // getCheckedNodes: () => BaseTreeNode[]; // getHalfCheckedNodes: () => BaseTreeNode[]; // getExpandedKeys: () => NodeKey[]; }>;