mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-14 12:09:04 +08:00
pad: Allow to use a string instead of an options object (#19208)
This commit is contained in:
4
types/pad/index.d.ts
vendored
4
types/pad/index.d.ts
vendored
@@ -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