diff --git a/types/align-text/index.d.ts b/types/align-text/index.d.ts index 0ceaa5e545..ad72062b34 100644 --- a/types/align-text/index.d.ts +++ b/types/align-text/index.d.ts @@ -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; diff --git a/types/align-text/test/array.ts b/types/align-text/test/array.ts new file mode 100644 index 0000000000..4d5fef3479 --- /dev/null +++ b/types/align-text/test/array.ts @@ -0,0 +1,6 @@ +import align from "align-text"; + +const text = ["abc", true, 123456, { hello: "world" }]; +align(text, 4); + +align(text);