vtils

Home > utils > TreeDataChildrenPropName

TreeDataChildrenPropName type

Signature:

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

References: TreeDataNode, TreeDataData