mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
16 lines
751 B
TypeScript
16 lines
751 B
TypeScript
// Type definitions for pad 1.0
|
|
// Project: https://github.com/adaltas/node-pad
|
|
// Definitions by: Mohamed Hegazy <https://github.com/mhegazy>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
export = pad;
|
|
|
|
/** left pad */
|
|
declare function pad(length: number, text: string, char?: string): string;
|
|
// tslint:disable-next-line unified-signatures
|
|
declare function pad(length: number, text: string, options?: { char?: string, colors?: boolean, strip?: boolean }): string;
|
|
/** Right pad */
|
|
declare function pad(text: string, length: number, char?: string): string;
|
|
// tslint:disable-next-line unified-signatures
|
|
declare function pad(text: string, length: number, options?: { char?: string, colors?: boolean, strip?: boolean }): string;
|