@@ -872,9 +872,9 @@ export function arrayIsEqualTo<T>(array1: readonly T[] | undefined, array2: read
872872 *
873873 * @internal
874874 */
875- export function compact < T > ( array : ( T | undefined | null | false | 0 | "" ) [ ] ) : T [ ] ;
875+ export function compact < T > ( array : ( T | undefined | null | false | 0 | "" ) [ ] ) : T [ ] ; // eslint-disable-line no-restricted-syntax
876876/** @internal */
877- export function compact < T > ( array : readonly ( T | undefined | null | false | 0 | "" ) [ ] ) : readonly T [ ] ;
877+ export function compact < T > ( array : readonly ( T | undefined | null | false | 0 | "" ) [ ] ) : readonly T [ ] ; // eslint-disable-line no-restricted-syntax
878878// ESLint thinks these can be combined with the above - they cannot; they'd produce higher-priority inferences and prevent the falsey types from being stripped
879879/** @internal */
880880export function compact < T > ( array : T [ ] ) : T [ ] ; // eslint-disable-line @typescript-eslint/unified-signatures
@@ -1511,8 +1511,8 @@ export function group<T, K>(values: readonly T[], getGroupId: (value: T) => K, r
15111511/** @internal */
15121512export function groupBy < T , U extends T > ( values : readonly T [ ] | undefined , keySelector : ( value : T ) => value is U ) : { true ?: U [ ] ; false ?: Exclude < T , U > [ ] ; } ;
15131513/** @internal */
1514- export function groupBy < T , K extends string | number | boolean | null | undefined > ( values : readonly T [ ] | undefined , keySelector : ( value : T ) => K ) : { [ P in K as `${P } `] ?: T [ ] ; } ;
1515- export function groupBy < T , K extends string | number | boolean | null | undefined > ( values : readonly T [ ] | undefined , keySelector : ( value : T ) => K ) : { [ P in K as `${P } `] ?: T [ ] ; } {
1514+ export function groupBy < T , K extends string | number | boolean | null | undefined > ( values : readonly T [ ] | undefined , keySelector : ( value : T ) => K ) : { [ P in K as `${P } `] ?: T [ ] ; } ; // eslint-disable-line no-restricted-syntax
1515+ export function groupBy < T , K extends string | number | boolean | null | undefined > ( values : readonly T [ ] | undefined , keySelector : ( value : T ) => K ) : { [ P in K as `${P } `] ?: T [ ] ; } { // eslint-disable-line no-restricted-syntax
15161516 const result : Record < string , T [ ] > = { } ;
15171517 if ( values ) {
15181518 for ( const value of values ) {
0 commit comments