ant-design-x-vue-next
Version:
Ant Design X for Vue — community continuation aligned with @ant-design/x
13 lines (12 loc) • 648 B
TypeScript
/** Get value from nested object by path, path format like /booking/date */
export declare function getValueByPath(obj: Record<string, any>, path: string): any;
/** Write value to nested object by path (immutable) */
export declare function setValueByPath(obj: Record<string, any>, path: string, value: any): Record<string, any>;
export declare function isPathValue(val: any): val is string;
export declare function isPathObject(val: any): val is {
path: string;
};
export declare function validateComponentAgainstCatalog(catalog: any, componentName: string, componentProps: Record<string, any>): {
valid: boolean;
errors: string[];
};