Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Aug 17, 2023
1 parent 3aaa920 commit 8cc33be
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 20 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/productionize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,6 @@ jobs:
id: transform-error-messages
uses: stdlib-js/transform-errors-action@main

# Format error messages:
- name: 'Replace double quotes with single quotes in rewritten format string error messages'
run: |
find . -name "*.js" -exec sed -E -i "s/Error\( format\( \"([a-zA-Z0-9]+)\"/Error\( format\( '\1'/g" {} \;
# Format string literal error messages:
- name: 'Replace double quotes with single quotes in rewritten string literal error messages'
run: |
find . -name "*.js" -exec sed -E -i "s/Error\( format\(\"([a-zA-Z0-9]+)\"\)/Error\( format\( '\1' \)/g" {} \;
# Format code:
- name: 'Replace double quotes with single quotes in inserted `require` calls'
run: |
find . -name "*.js" -exec sed -E -i "s/require\( ?\"@stdlib\/error-tools-fmtprodmsg\" ?\);/require\( '@stdlib\/error-tools-fmtprodmsg' \);/g" {} \;
# Change `@stdlib/string-format` to `@stdlib/error-tools-fmtprodmsg` in package.json if the former is a dependency, otherwise insert it as a dependency:
- name: 'Update dependencies in package.json'
run: |
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
[npm-image]: http://img.shields.io/npm/v/@stdlib/random-strided-mt19937.svg
[npm-url]: https://npmjs.org/package/@stdlib/random-strided-mt19937

[test-image]: https://github.com/stdlib-js/random-strided-mt19937/actions/workflows/test.yml/badge.svg?branch=v0.0.1
[test-url]: https://github.com/stdlib-js/random-strided-mt19937/actions/workflows/test.yml?query=branch:v0.0.1
[test-image]: https://github.com/stdlib-js/random-strided-mt19937/actions/workflows/test.yml/badge.svg?branch=main
[test-url]: https://github.com/stdlib-js/random-strided-mt19937/actions/workflows/test.yml?query=branch:main

[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/random-strided-mt19937/main.svg
[coverage-url]: https://codecov.io/github/stdlib-js/random-strided-mt19937?branch=main
Expand Down
3 changes: 3 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/// <reference path="../docs/types/index.d.ts" />
import mt19937 from '../docs/types/index';
export = mt19937;
11 changes: 11 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions dist/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/// <reference types="@stdlib/types"/>

import * as random from '@stdlib/types/random';
import { Collection } from '@stdlib/types/object';
import { Collection } from '@stdlib/types/array';

/**
* Interface defining function options.
Expand Down Expand Up @@ -67,7 +67,7 @@ interface NormalizedRoutine {
* // Fill the array with pseudorandom numbers:
* mt19937.normalized( out.length, out, 1 );
*/
<T = any>( N: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
<T = unknown>( N: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;

/**
* Fills a strided array with pseudorandom numbers on the interval `[0, 1)` with 53-bit precision using alternative indexing semantics.
Expand All @@ -90,7 +90,7 @@ interface NormalizedRoutine {
* // Fill the array with pseudorandom numbers:
* mt19937.normalized.ndarray( out.length, out, 1, 0 );
*/
ndarray<T = any>( N: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
ndarray<T = unknown>( N: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
}

/**
Expand Down

0 comments on commit 8cc33be

Please sign in to comment.