UNPKG

smr-performance-monitor

Version:

smr-performance-monitor

20 lines (19 loc) 769 B
declare type convertKeysToUnderscoreParamsTypes = { /** 被转换数据 */ data: any; /** true -> 小驼峰 -> 下划线; false -> 下划线 -> 小驼峰*/ switchToUnderline?: boolean; /** 无需处理的字段集合 */ ntnArr?: string[]; }; export declare const getUnderlineConcat: (str: string) => string; export declare const getCamelCase: (str: string) => string; /** * 小驼峰key 与 下划线key 命名转换 * obj:数据 * switchToUnderline: true -> 小驼峰 -> 下划线; false -> 下划线 -> 小驼峰 * ntnArr:无需处理的字段 - 默认添加LanguageEnum * */ export declare const convertKeysToUnderscore: (convertKeysToUnderscoreParams: convertKeysToUnderscoreParamsTypes) => any; export {};