@@ -57,33 +57,33 @@ declare global {
5757 * @param test - The test criterion to apply. Positional arguments are the value, the index of iteration, and the set being tested.
5858 * @returns Does every element in the set satisfy the test criterion?
5959 */
60- every ( test : ( value : T , index : number , set : Set < T > ) => boolean ) : boolean ;
60+ every ( /** @immediate */ test : ( value : T , index : number , set : Set < T > ) => boolean ) : boolean ;
6161
6262 /**
6363 * Filter this set to create a subset of elements which satisfy a certain test criterion.
6464 * @see {@link Array#filter }
6565 * @param test - The test criterion to apply. Positional arguments are the value, the index of iteration, and the set being filtered.
6666 * @returns A new Set containing only elements which satisfy the test criterion.
6767 */
68- filter < F extends T > ( test : ( value : T , index : number , set : Set < T > ) => value is F ) : Set < F > ;
69- filter ( test : ( value : T , index : number , set : Set < T > ) => boolean ) : Set < T > ;
68+ filter < F extends T > ( /** @immediate */ test : ( value : T , index : number , set : Set < T > ) => value is F ) : Set < F > ;
69+ filter ( /** @immediate */ test : ( value : T , index : number , set : Set < T > ) => boolean ) : Set < T > ;
7070
7171 /**
7272 * Find the first element in this set which satisfies a certain test criterion.
7373 * @see {@link Array#find }
7474 * @param test - The test criterion to apply. Positional arguments are the value, the index of iteration, and the set being searched.
7575 * @returns The first element in the set which satisfies the test criterion, or undefined.
7676 */
77- find < F extends T > ( test : ( value : T , index : number , set : Set < T > ) => value is F ) : F | undefined ;
78- find ( test : ( value : T , index : number , set : Set < T > ) => boolean ) : T | undefined ;
77+ find < F extends T > ( /** @immediate */ test : ( value : T , index : number , set : Set < T > ) => value is F ) : F | undefined ;
78+ find ( /** @immediate */ test : ( value : T , index : number , set : Set < T > ) => boolean ) : T | undefined ;
7979
8080 /**
8181 * Create a new Set where every element is modified by a provided transformation function.
8282 * @see {@link Array#map }
8383 * @param transform - The transformation function to apply.Positional arguments are the value, the index of iteration, and the set being transformed.
8484 * @returns A new Set of equal size containing transformed elements.
8585 */
86- map < V > ( transform : ( value : T , index : number , set : Set < T > ) => V ) : Set < V > ;
86+ map < V > ( /** @immediate */ transform : ( value : T , index : number , set : Set < T > ) => V ) : Set < V > ;
8787
8888 /**
8989 * Create a new Set with elements that are filtered and transformed by a provided reducer function.
@@ -92,14 +92,17 @@ declare global {
9292 * @param accumulator - The initial value of the returned accumulator.
9393 * @returns The final value of the accumulator.
9494 */
95- reduce < V > ( reducer : ( accumulator : V , value : T , index : number , set : Set < T > ) => V , accumulator : V ) : V ;
95+ reduce < V > (
96+ /** @immediate */ reducer : ( accumulator : V , value : T , index : number , set : Set < T > ) => V ,
97+ accumulator : V ,
98+ ) : V ;
9699
97100 /**
98101 * Test whether any element in this Set satisfies a certain test criterion.
99102 * @see {@link Array#some }
100103 * @param test - The test criterion to apply. Positional arguments are the value, the index of iteration, and the set being tested.
101104 * @returns Does any element in the set satisfy the test criterion?
102105 */
103- some ( test : ( value : T , index : number , set : Set < T > ) => boolean ) : boolean ;
106+ some ( /** @immediate */ test : ( value : T , index : number , set : Set < T > ) => boolean ) : boolean ;
104107 }
105108}
0 commit comments