Skip to content

Commit d94dc7a

Browse files
committed
Auto-generated commit
1 parent 3b8dd1e commit d94dc7a

8 files changed

Lines changed: 51 additions & 13 deletions

File tree

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,40 @@
22

33
> Package changelog.
44
5+
<section class="release" id="unreleased">
6+
7+
## Unreleased (2025-12-29)
8+
9+
<section class="commits">
10+
11+
### Commits
12+
13+
<details>
14+
15+
- [`982208c`](https://github.com/stdlib-js/stdlib/commit/982208cf3c840a5f3ff23378056cd7843dc1e173) - **docs:** update dtype type _(by Athan Reines)_
16+
17+
</details>
18+
19+
</section>
20+
21+
<!-- /.commits -->
22+
23+
<section class="contributors">
24+
25+
### Contributors
26+
27+
A total of 1 person contributed to this release. Thank you to this contributor:
28+
29+
- Athan Reines
30+
31+
</section>
32+
33+
<!-- /.contributors -->
34+
35+
</section>
36+
37+
<!-- /.release -->
38+
539
<section class="release" id="v0.2.2">
640

741
## 0.2.2 (2024-07-28)

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/repl.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44

55
Parameters
66
----------
7-
dtypeX: string
7+
dtypeX: string|DataType
88
First input array data type.
99

10-
dtypeY: string
10+
dtypeY: string|DataType
1111
Second input array data type.
1212

13-
dtypeZ: string
13+
dtypeZ: string|DataType
1414
Output array data type.
1515

1616
Returns

docs/types/index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818

1919
// TypeScript Version: 4.1
2020

21+
/// <reference types="@stdlib/types"/>
22+
23+
import { DataType } from '@stdlib/types/ndarray';
24+
2125
/**
2226
* Returns a loop block size for multi-dimensional array tiled loops.
2327
*
@@ -30,7 +34,7 @@
3034
* var bsize = binaryBlockSize( 'float64', 'float64', 'float64' );
3135
* // returns <number>
3236
*/
33-
declare function binaryBlockSize( dtypeX: string, dtypeY: string, dtypeZ: string ): number;
37+
declare function binaryBlockSize( dtypeX: DataType, dtypeY: DataType, dtypeZ: DataType ): number;
3438

3539

3640
// EXPORTS //

docs/types/test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import binaryBlockSize = require( './index' );
2727
binaryBlockSize( 'generic', 'generic', 'generic' ); // $ExpectType number
2828
}
2929

30-
// The compiler throws an error if the function is provided a first argument which is not a string...
30+
// The compiler throws an error if the function is provided a first argument which is not a valid data type...
3131
{
3232
binaryBlockSize( 123, 'float64', 'float64' ); // $ExpectError
3333
binaryBlockSize( true, 'float64', 'float64' ); // $ExpectError
@@ -38,7 +38,7 @@ import binaryBlockSize = require( './index' );
3838
binaryBlockSize( ( x: number ): number => x, 'float64', 'float64' ); // $ExpectError
3939
}
4040

41-
// The compiler throws an error if the function is provided a second argument which is not a string...
41+
// The compiler throws an error if the function is provided a second argument which is not a valid data type...
4242
{
4343
binaryBlockSize( 'int32', 123, 'int32' ); // $ExpectError
4444
binaryBlockSize( 'int32', true, 'int32' ); // $ExpectError
@@ -49,7 +49,7 @@ import binaryBlockSize = require( './index' );
4949
binaryBlockSize( 'int32', ( x: number ): number => x, 'int32' ); // $ExpectError
5050
}
5151

52-
// The compiler throws an error if the function is provided a third argument which is not a string...
52+
// The compiler throws an error if the function is provided a third argument which is not a valid data type...
5353
{
5454
binaryBlockSize( 'int32', 'int32', 123 ); // $ExpectError
5555
binaryBlockSize( 'int32', 'int32', true ); // $ExpectError

lib/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ var defaults = require( './defaults.js' );
2929
/**
3030
* Returns a loop block size for multi-dimensional array tiled loops.
3131
*
32-
* @param {string} dtypeX - first input array data type
33-
* @param {string} dtypeY - second input array data type
34-
* @param {string} dtypeZ - output array data type
32+
* @param {*} dtypeX - first input array data type
33+
* @param {*} dtypeY - second input array data type
34+
* @param {*} dtypeZ - output array data type
3535
* @returns {integer} block size (in units of elements)
3636
*
3737
* @example

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"url": "https://github.com/stdlib-js/stdlib/issues"
3838
},
3939
"dependencies": {
40-
"@stdlib/ndarray-base-bytes-per-element": "^0.2.2"
40+
"@stdlib/ndarray-base-bytes-per-element": "^0.2.2",
41+
"@stdlib/types": "^0.4.3"
4142
},
4243
"devDependencies": {
4344
"@stdlib/array-base-cartesian-square": "^0.2.2",

0 commit comments

Comments
 (0)