From a0ab4c3a8d578587ae596ded8ae9872b94808ea5 Mon Sep 17 00:00:00 2001 From: rimuy <46044567+rimuy@users.noreply.github.com> Date: Sun, 27 Oct 2024 20:31:37 -0300 Subject: [PATCH 1/2] Update String.d.ts --- types/String.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/types/String.d.ts b/types/String.d.ts index 1ea0c5a..92bc07f 100644 --- a/types/String.d.ts +++ b/types/String.d.ts @@ -11,6 +11,8 @@ interface String extends Iterable { */ readonly _nominal_String: unique symbol; + readonly [index: number]: string; + /** The current number of characters in the string. */ size(this: string): number; } From 3d1be9a35a5b2fcb1a04780a1cb2c734eeb1fd67 Mon Sep 17 00:00:00 2001 From: rimuy <46044567+rimuy@users.noreply.github.com> Date: Sun, 27 Oct 2024 20:51:25 -0300 Subject: [PATCH 2/2] Update String.d.ts --- types/String.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/String.d.ts b/types/String.d.ts index 92bc07f..ff10d2a 100644 --- a/types/String.d.ts +++ b/types/String.d.ts @@ -11,8 +11,8 @@ interface String extends Iterable { */ readonly _nominal_String: unique symbol; - readonly [index: number]: string; - /** The current number of characters in the string. */ size(this: string): number; + + readonly [n: number]: string; }