mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-15 06:20:23 +00:00
marked callback parameter as optional
This commit is contained in:
Vendored
+2
-2
@@ -31,7 +31,7 @@ interface Callback {
|
||||
| TransformResult;
|
||||
}
|
||||
|
||||
declare function align_text(text: string, fn: number | Callback): string;
|
||||
declare function align_text(text: string[], fn: number | Callback): string[];
|
||||
declare function align_text(text: string, fn?: number | Callback): string;
|
||||
declare function align_text(text: string[], fn?: number | Callback): string[];
|
||||
|
||||
export = align_text;
|
||||
|
||||
@@ -4,3 +4,5 @@ const text = ["abc", "abc", "abc"];
|
||||
align(text, 4);
|
||||
|
||||
align("abc", 2);
|
||||
|
||||
align("abc");
|
||||
|
||||
Reference in New Issue
Block a user