DefinitelyTyped/types/jsonabc/index.d.ts
2019-01-10 22:17:54 +01:00

21 lines
657 B
TypeScript

// Type definitions for jsonabc 2.3
// Project: http://novicelab.org/jsonabc
// Definitions by: Florian Keller <https://github.com/ffflorian>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
/**
* Sort the JSON (clean, parse, sort, stringify).
* @param noArray Sort or don't sort arrays
*/
export function sort(inputStr: string, noArray?: boolean): string;
/**
* Sort the JSON (clean, parse, sort, stringify).
* @param noArray Sort or don't sort arrays
*/
export function sortObj(input: object, noArray?: boolean): object;
/** Remove trailing commas */
export function cleanJSON(input: string): string;