antd-hz
Version:
华卓科技基于 antd 5.0 定制的组件库
14 lines (13 loc) • 670 B
TypeScript
import type { AnyObject } from '../../_util/type';
/**
* This function will do as `Object.assign` in production. But will use Object.defineProperty:get to
* pass all value access in development. To support statistic field usage with alias token.
*/
export declare function merge<T extends AnyObject>(...objs: Partial<T>[]): T;
/** Statistic token usage case. Should use `merge` function if you do not want spread record. */
declare const statisticToken: <T extends AnyObject>(token: T) => {
token: T;
keys: Set<string> | undefined;
flush: (componentName: string, componentToken: Record<string, string | number>) => void;
};
export default statisticToken;