From e45b4bcaab98e496c735466ce91bce4a63fd81fb Mon Sep 17 00:00:00 2001 From: rawpixel-vincent Date: Mon, 18 Mar 2024 10:37:05 +0700 Subject: [PATCH] fix missing parenthesis in filter and mutable return type --- types/list.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/list.d.ts b/types/list.d.ts index d3d67cd..63b2137 100644 --- a/types/list.d.ts +++ b/types/list.d.ts @@ -147,7 +147,7 @@ export interface IStringList< : never; value(val): Tuple[number]; - mutable(): Tuple[number] & string[]; + mutable(): (Tuple[number] & string)[]; sort( compareFn?: (a: P1, b: P2) => number, ): MaybeReadonly>; @@ -434,7 +434,7 @@ export interface IStringList< array: Tuple[number][], ) => boolean, thisArg?: any, - ): Tuple[number] & string[]; + ): (Tuple[number] & string)[]; /** * @deprecated This method will mutate the list, Get the mutable array with `list.mutable()`