Skip to content

Commit cd6dc2a

Browse files
add support for accessor arrays
1 parent 9531c78 commit cd6dc2a

File tree

1 file changed

+2
-1
lines changed
  • lib/node_modules/@stdlib/stats/base/cumax/docs/types

1 file changed

+2
-1
lines changed

lib/node_modules/@stdlib/stats/base/cumax/docs/types/test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import AccessorArray = require( '@stdlib/array/base/accessor' );
2828
const y = new Float64Array( 10 );
2929

3030
cumax( x.length, x, 1, y, 1 ); // $ExpectType NumericArray
31-
cumax( x.length, new AccessorArray( x ), 1, new AccessorArray( y ), 1 ); // $ExpectType NumericArray
31+
cumax( x.length, new AccessorArray( x ), 1, new AccessorArray( y ), 1 ); // $ExpectType AccessorArray<number>
3232
}
3333

3434
// The compiler throws an error if the function is provided a first argument which is not a number...
@@ -126,6 +126,7 @@ import AccessorArray = require( '@stdlib/array/base/accessor' );
126126
const y = new Float64Array( 10 );
127127

128128
cumax.ndarray( x.length, x, 1, 0, y, 1, 0 ); // $ExpectType NumericArray
129+
cumax( x.length, new AccessorArray( x ), 1, new AccessorArray( y ), 1 ); // $ExpectType AccessorArray<number>
129130
}
130131

131132
// The compiler throws an error if the `ndarray` method is provided a first argument which is not a number...

0 commit comments

Comments
 (0)