Fix parameter types of padders

This commit is contained in:
Niklas Mollenhauer 2015-10-13 07:20:11 +02:00
parent a5496bc364
commit 60d9ffa196

View File

@ -23,7 +23,7 @@ declare module "easy-table"
* @param {String} ch
* @returns {Function}
*/
public static leftPadder<T>(ch: number): CellPrinter<T>;
public static leftPadder<T>(ch: string): CellPrinter<T>;
public static padLeft: CellPrinter<string>;
@ -33,9 +33,9 @@ declare module "easy-table"
* @param {String} ch
* @returns {Function}
*/
public static rightPadder<T>(ch: number): CellPrinter<T>;
public static rightPadder<T>(ch: string): CellPrinter<T>;
public static padRight: CellPrinter<string>;
// public static padRight: CellPrinter<string>;
/**
* Create a printer for numbers