mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
items in arrays are automatically stringified
This commit is contained in:
parent
45fc145478
commit
e23c909bb5
2
types/align-text/index.d.ts
vendored
2
types/align-text/index.d.ts
vendored
@ -32,6 +32,6 @@ interface Callback {
|
||||
}
|
||||
|
||||
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: any[], fn?: number | Callback): string[];
|
||||
|
||||
export = align_text;
|
||||
|
||||
6
types/align-text/test/array.ts
Normal file
6
types/align-text/test/array.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import align from "align-text";
|
||||
|
||||
const text = ["abc", true, 123456, { hello: "world" }];
|
||||
align(text, 4);
|
||||
|
||||
align(text);
|
||||
Loading…
Reference in New Issue
Block a user