fix(core): update

This commit is contained in:
2020-10-05 11:26:06 +00:00
parent e11ace6a23
commit 0d3bcab40f
9 changed files with 140 additions and 118 deletions

View File

@ -6,7 +6,7 @@ import * as plugins from './smartjson.plugins';
export const parse = plugins.bufferJson.parse;
/**
*
*
* @param objArg
* @param optionsArg
*/

View File

@ -8,13 +8,19 @@ const stableJson = stableJson2 as any;
export { bufferJson, lodashCloneDeep, stableJson };
export interface IStableJsonTypes {
Comparator: (a: IStableJsonTypes['CompareDescriptor'], b: IStableJsonTypes['CompareDescriptor']) => number;
Comparator: (
a: IStableJsonTypes['CompareDescriptor'],
b: IStableJsonTypes['CompareDescriptor']
) => number;
CompareDescriptor: {
key: string;
value: any;
key: string;
value: any;
};
Options: {
cmp?: (a: IStableJsonTypes['CompareDescriptor'], b: IStableJsonTypes['CompareDescriptor']) => number;
cmp?: (
a: IStableJsonTypes['CompareDescriptor'],
b: IStableJsonTypes['CompareDescriptor']
) => number;
cycles?: boolean;
};
}