Skip to content

Commit

Permalink
fix missing parenthesis in filter and mutable return type
Browse files Browse the repository at this point in the history
  • Loading branch information
rawpixel-vincent committed Mar 18, 2024
1 parent 7509705 commit e45b4bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/list.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export interface IStringList<
: never;

value(val): Tuple[number];
mutable(): Tuple[number] & string[];
mutable(): (Tuple[number] & string)[];
sort<P1 = Tuple[number], P2 = Tuple[number]>(
compareFn?: (a: P1, b: P2) => number,
): MaybeReadonly<Mut, IStringList<Tuple, Mut, true>>;
Expand Down Expand Up @@ -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()`
Expand Down

0 comments on commit e45b4bc

Please sign in to comment.