fix cliff

This commit is contained in:
Paul van Brenk 2016-08-19 17:39:57 -07:00
parent 8dce5bde7d
commit 8aef70fb4d
4 changed files with 31 additions and 14 deletions

1
cliff/cliff-tests.ts Normal file
View File

@ -0,0 +1 @@
/// <reference types="cliff" />

14
cliff/cliff.d.ts vendored
View File

@ -1,14 +0,0 @@
// Type definitions for cliff 0.1.10
// Project: https://github.com/flatiron/cliff
// Definitions by: bryn austin bellomy <https://github.com/brynbellomy>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "cliff" {
export function inspect(obj:any): string;
export function stringifyRows(rows:string[][], colors?:string[]): string;
export function stringifyObjectRows(rows:Array<{}>, keys:string[], colors?:string[]): string;
export function putRows(level:string, rows:string[][], colors?:string[]): void;
export function putObjectRows(level:string, rows:Array<{}>, keys:string[], colors?:string[]): void;
export function putObject(level:string, object:any, rewriters?:any, padding?:any): void;
}

11
cliff/index.d.ts vendored Normal file
View File

@ -0,0 +1,11 @@
// Type definitions for cliff 0.1.10
// Project: https://github.com/flatiron/cliff
// Definitions by: bryn austin bellomy <https://github.com/brynbellomy>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
export function inspect(obj: any): string;
export function stringifyRows(rows: string[][], colors?: string[]): string;
export function stringifyObjectRows(rows: Array<{}>, keys: string[], colors?: string[]): string;
export function putRows(level: string, rows: string[][], colors?: string[]): void;
export function putObjectRows(level: string, rows: Array<{}>, keys: string[], colors?: string[]): void;
export function putObject(level: string, object: any, rewriters?: any, padding?: any): void;

19
cliff/tsconfig.json Normal file
View File

@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"cliff-tests.ts"
]
}