mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
pad: Allow to use a string instead of an options object (#19208)
This commit is contained in:
Vendored
+4
@@ -6,6 +6,10 @@
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user