From cf1e33abb800158e295e12a95be09a7050e5983e Mon Sep 17 00:00:00 2001 From: Martin Lindberg <30564420+fartinmartin@users.noreply.github.com> Date: Wed, 14 May 2025 07:34:29 -0700 Subject: [PATCH 1/2] `String.concat` accepts more than one value --- shared/JavaScript.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/JavaScript.d.ts b/shared/JavaScript.d.ts index b8d6a92..92929d9 100644 --- a/shared/JavaScript.d.ts +++ b/shared/JavaScript.d.ts @@ -1008,7 +1008,7 @@ interface String { * Those values are concatenated with the original string, the result is returned. The original string is not effected.Returns the concatenated string. * @param value The values to be concatenated with the given string. */ - concat(value: string): string + concat(...value: string[]): string /** * Returns a string consisting of this string enclosed in a tag. From 934593fdb3ef3a95a22b1efc38e583bf7c06c68b Mon Sep 17 00:00:00 2001 From: Martin Lindberg <30564420+fartinmartin@users.noreply.github.com> Date: Wed, 14 May 2025 07:41:44 -0700 Subject: [PATCH 2/2] `String.concat` works with any type --- shared/JavaScript.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/JavaScript.d.ts b/shared/JavaScript.d.ts index 92929d9..502202b 100644 --- a/shared/JavaScript.d.ts +++ b/shared/JavaScript.d.ts @@ -1008,7 +1008,7 @@ interface String { * Those values are concatenated with the original string, the result is returned. The original string is not effected.Returns the concatenated string. * @param value The values to be concatenated with the given string. */ - concat(...value: string[]): string + concat(...value: any[]): string /** * Returns a string consisting of this string enclosed in a tag.