@@ -93,23 +93,23 @@ function clbk( i: number ): number {
93
93
filledarrayBy ( it , 'uint8c' , clbk , { } ) ; // $ExpectType ArrayOrTypedArray
94
94
95
95
const buf = new ArrayBuffer ( 32 ) ;
96
- filledarrayBy ( buf , clbk ) ; // $ExpectType RealOrComplexTypedArray
97
- filledarrayBy ( buf , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray
96
+ filledarrayBy ( buf , clbk ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
97
+ filledarrayBy ( buf , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
98
98
99
- filledarrayBy ( buf , 'uint32' , clbk ) ; // $ExpectType RealOrComplexTypedArray
100
- filledarrayBy ( buf , 'uint32' , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray
99
+ filledarrayBy ( buf , 'uint32' , clbk ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
100
+ filledarrayBy ( buf , 'uint32' , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
101
101
102
- filledarrayBy ( buf , 8 , clbk ) ; // $ExpectType RealOrComplexTypedArray
103
- filledarrayBy ( buf , 8 , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray
102
+ filledarrayBy ( buf , 8 , clbk ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
103
+ filledarrayBy ( buf , 8 , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
104
104
105
- filledarrayBy ( buf , 8 , 'uint16' , clbk ) ; // $ExpectType RealOrComplexTypedArray
106
- filledarrayBy ( buf , 8 , 'uint16' , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray
105
+ filledarrayBy ( buf , 8 , 'uint16' , clbk ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
106
+ filledarrayBy ( buf , 8 , 'uint16' , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
107
107
108
- filledarrayBy ( buf , 8 , 2 , clbk ) ; // $ExpectType RealOrComplexTypedArray
109
- filledarrayBy ( buf , 8 , 2 , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray
108
+ filledarrayBy ( buf , 8 , 2 , clbk ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
109
+ filledarrayBy ( buf , 8 , 2 , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
110
110
111
- filledarrayBy ( buf , 8 , 2 , 'int16' , clbk ) ; // $ExpectType RealOrComplexTypedArray
112
- filledarrayBy ( buf , 8 , 2 , 'int16' , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray
111
+ filledarrayBy ( buf , 8 , 2 , 'int16' , clbk ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
112
+ filledarrayBy ( buf , 8 , 2 , 'int16' , clbk , { } ) ; // $ExpectType RealOrComplexTypedArray | BooleanArray
113
113
}
114
114
115
115
// The compiler throws an error if a callback function argument is not a function...
0 commit comments