Files published in the wrong branch removed

This commit is contained in:
WAEL BEN ZID
2015-12-18 15:50:24 +01:00
parent 3a25247cd5
commit 1a7703a16c
2 changed files with 0 additions and 73 deletions
-18
View File
@@ -1,18 +0,0 @@
/// <reference path="./prettyjson.d.ts" />
var options: prettyjson.IOptions,
input: string,
output: string;
input = 'This is a string';
output = prettyjson.render(input);
output = prettyjson.render(input, {}, 4);
output = prettyjson.render(['first string', ['nested 1', 'nested 2'], 'second string']);
output = prettyjson.render({param1: 'first string', param2: 'second string'});
output = prettyjson.render({first_param: {subparam: 'first string', subparam2: 'another string'}, second_param: 'second string'});
-55
View File
@@ -1,55 +0,0 @@
// Type definitions for prettyjson
// Project: https://github.com/rafeca/prettyjson
// Definitions by: Wael BEN ZID EL GUEBSI <https://github.com/benzid-wael/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "prettyjson" {
/**
* Defines prettyjson version
*/
export var version: string;
/**
* Render pretty json.
*
* @param data {Object} Data to prettify.
* @param options {IOptions} Hash with different options to configure the renderer.
* @param indentation {number} Indentation size.
*
* @return {string} pretty serialized json data ready to display.
*/
export function render(data: Object, options?: IOptions, indentation?: number): string;
/**
* Render pretty json from a string.
*
* @param data {string} Serialized JSON data to prettify.
* @param options {IOptions} Hash with different options to configure the renderer.
* @param indentation {number} Indentation size.
*
* @return {string} pretty serialized json data ready to display.
*/
export function renderString(data: string, options?: IOptions, indentation?: number): string;
export interface IOptions {
/**
* Define behavior for Array objects
*/
emptyArrayMsg ?: string; // default: (empty)
inlineArrays ?: boolean;
/**
* Color definition
*/
noColor ?: boolean;
keysColor ?: string;
dashColor ?: string;
numberColor ?: string;
stringColor ?: string;
defaultIndentation ?: number;
}
}