vtils

Home > utils > TreeDataChildrenPropName

TreeDataChildrenPropName type

Signature:

export declare type TreeDataChildrenPropName<TNode extends TreeDataNode> = {
    [K in keyof TNode]: TNode[K] extends TreeDataData<TNode> ? K : never;
}[keyof TNode];

References: TreeDataNode, TreeDataData