oca_package
Version:
The wrapper of OCA bundle to generate OCA Package at ADC
15 lines • 637 B
TypeScript
type JsonObject = {
[key: string]: JsonValue;
};
type JsonArray = JsonValue[];
type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
/**
* Canonicalizes a JSON object by sorting its properties and maintaining the order of array elements.
* This function is useful for generating a consistent string representation of JSON data.
*
* @param {JsonValue} object - The JSON object to canonicalize.
* @returns {string} - The canonicalized string representation of the JSON object.
*/
declare const canonicalize: (object: JsonValue) => string;
export default canonicalize;
//# sourceMappingURL=canonical.d.ts.map