mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
665 B
TypeScript
21 lines
665 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<T extends object>(input: T, noArray?: boolean): T;
|
|
|
|
/** Remove trailing commas */
|
|
export function cleanJSON(input: string): string;
|