From 0dd039d288d61135a753a484df6f729a3262f75a Mon Sep 17 00:00:00 2001 From: stdlib-bot Date: Sun, 31 Dec 2023 11:02:58 +0000 Subject: [PATCH] Auto-generated commit --- .github/.keepalive | 1 - .github/workflows/benchmark.yml | 6 ++--- .github/workflows/examples.yml | 6 ++--- .github/workflows/npm_downloads.yml | 10 +++---- .github/workflows/productionize.yml | 34 ++++++++++++------------ .github/workflows/publish.yml | 6 ++--- .github/workflows/test.yml | 6 ++--- .github/workflows/test_bundles.yml | 16 +++++------ .github/workflows/test_coverage.yml | 10 +++---- .github/workflows/test_install.yml | 6 ++--- .npmignore | 1 + CONTRIBUTORS | 1 + SECURITY.md | 5 ++++ benchmark/benchmark.js | 2 +- benchmark/benchmark.length.complex128.js | 2 +- benchmark/benchmark.length.complex64.js | 2 +- benchmark/benchmark.length.float32.js | 2 +- benchmark/benchmark.length.float64.js | 2 +- benchmark/benchmark.length.int16.js | 2 +- benchmark/benchmark.length.int32.js | 2 +- benchmark/benchmark.length.int8.js | 2 +- benchmark/benchmark.length.uint16.js | 2 +- benchmark/benchmark.length.uint32.js | 2 +- benchmark/benchmark.length.uint8.js | 2 +- benchmark/benchmark.length.uint8c.js | 2 +- docs/types/index.d.ts | 16 +++++------ package.json | 4 +-- 27 files changed, 79 insertions(+), 73 deletions(-) delete mode 100644 .github/.keepalive create mode 100644 SECURITY.md diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index 9907d4f..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2023-12-01T05:42:34.491Z diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index ab56cca..30656c4 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -41,15 +41,15 @@ jobs: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Install Node.js: - name: 'Install Node.js' # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Install dependencies: diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index c1c45e7..c92f5c4 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -41,15 +41,15 @@ jobs: # Checkout repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Install Node.js: - name: 'Install Node.js' # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Install dependencies: diff --git a/.github/workflows/npm_downloads.yml b/.github/workflows/npm_downloads.yml index 7354d1e..749352a 100644 --- a/.github/workflows/npm_downloads.yml +++ b/.github/workflows/npm_downloads.yml @@ -45,8 +45,8 @@ jobs: steps: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 timeout-minutes: 10 # Install Node.js: @@ -54,7 +54,7 @@ jobs: # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Resolve package name: @@ -102,8 +102,8 @@ jobs: # Send data to events server: - name: 'Post data' - # Pin action to full length commit SHA corresponding to v3.0.3: - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 + # Pin action to full length commit SHA + uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 env: webhook_url: ${{ secrets.STDLIB_NPM_DOWNLOADS_URL }} webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} diff --git a/.github/workflows/productionize.yml b/.github/workflows/productionize.yml index 265afda..e1e3539 100644 --- a/.github/workflows/productionize.yml +++ b/.github/workflows/productionize.yml @@ -61,8 +61,8 @@ jobs: steps: # Checkout main branch of repository: - name: 'Checkout main branch' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 with: ref: main @@ -71,7 +71,7 @@ jobs: # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Create production branch: @@ -134,8 +134,8 @@ jobs: # Checkout the repository: - name: 'Checkout repository' if: ${{ github.event.inputs.require-passing-tests == 'true' }} - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 with: # Use the `production` branch: ref: production @@ -146,7 +146,7 @@ jobs: # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Install dependencies: @@ -188,8 +188,8 @@ jobs: steps: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Configure git: - name: 'Configure git' @@ -259,7 +259,7 @@ jobs: # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Install dependencies: @@ -364,8 +364,8 @@ jobs: steps: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Configure git: - name: 'Configure git' @@ -427,7 +427,7 @@ jobs: # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Install dependencies: @@ -538,8 +538,8 @@ jobs: steps: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Configure git: - name: 'Configure git' @@ -609,7 +609,7 @@ jobs: # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Install dependencies: @@ -719,8 +719,8 @@ jobs: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 with: fetch-depth: 2 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8b8977f..1345024 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -61,15 +61,15 @@ jobs: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Install Node.js: - name: 'Install Node.js' # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Configure git: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d427e63..f1056d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -58,15 +58,15 @@ jobs: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Install Node.js: - name: 'Install Node.js' # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Install dependencies: diff --git a/.github/workflows/test_bundles.yml b/.github/workflows/test_bundles.yml index 0d26143..4c30492 100644 --- a/.github/workflows/test_bundles.yml +++ b/.github/workflows/test_bundles.yml @@ -49,8 +49,8 @@ jobs: steps: # Checkout UMD branch of the repository: - name: 'Checkout branch with UMD build' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 with: ref: umd @@ -59,7 +59,7 @@ jobs: # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 17 + node-version: 20 # Try loading the UMD bundle: - name: 'Try loading UMD bundle' @@ -116,8 +116,8 @@ jobs: # Checkout ES modules branch of the repository: - name: 'Checkout branch with ESM build' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 with: ref: esm @@ -126,7 +126,7 @@ jobs: # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 17 + node-version: 20 # Try loading the ES module bundle: - name: 'Try loading ESM' @@ -161,8 +161,8 @@ jobs: # Checkout Deno branch of the repository: - name: 'Checkout branch with Deno build' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 with: ref: deno diff --git a/.github/workflows/test_coverage.yml b/.github/workflows/test_coverage.yml index 5b2b1ea..1b9adfa 100644 --- a/.github/workflows/test_coverage.yml +++ b/.github/workflows/test_coverage.yml @@ -46,15 +46,15 @@ jobs: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Install Node.js: - name: 'Install Node.js' # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Install dependencies: @@ -119,8 +119,8 @@ jobs: # Send data to events server: - name: 'Post data' - # Pin action to full length commit SHA corresponding to v3.0.3: - uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 + # Pin action to full length commit SHA + uses: distributhor/workflow-webhook@48a40b380ce4593b6a6676528cd005986ae56629 # v3.0.3 env: webhook_url: ${{ secrets.STDLIB_COVERAGE_URL }} webhook_secret: ${{ secrets.STDLIB_WEBHOOK_SECRET }} diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 0a9bd1f..b7d829b 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -58,15 +58,15 @@ jobs: # Checkout the repository: - name: 'Checkout repository' - # Pin action to full length commit SHA corresponding to v4.1.0 - uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + # Pin action to full length commit SHA + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 # Install Node.js: - name: 'Install Node.js' # Pin action to full length commit SHA corresponding to v3.8.1 uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: - node-version: 16 + node-version: 20 timeout-minutes: 5 # Install dependencies: diff --git a/.npmignore b/.npmignore index d369eec..5c7f09d 100644 --- a/.npmignore +++ b/.npmignore @@ -18,6 +18,7 @@ # Files # ######### +CITATION.cff CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 188cda8..726c1ec 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -15,6 +15,7 @@ Dorrin Sotoudeh Frank Kovacs Harshita Kalani James Gelok +Jaysukh Makvana Jithin KS Joey Reed Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com> diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..9702d4c --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,5 @@ +# Security + +> Policy for reporting security vulnerabilities. + +See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security). diff --git a/benchmark/benchmark.js b/benchmark/benchmark.js index a98b7ba..69da678 100644 --- a/benchmark/benchmark.js +++ b/benchmark/benchmark.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var isComplexTypedArray = require( '@stdlib/assert-is-complex-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.complex128.js b/benchmark/benchmark.length.complex128.js index 15ff04f..9db9be7 100644 --- a/benchmark/benchmark.length.complex128.js +++ b/benchmark/benchmark.length.complex128.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isComplexTypedArray = require( '@stdlib/assert-is-complex-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.complex64.js b/benchmark/benchmark.length.complex64.js index 7eb2a58..ff557f1 100644 --- a/benchmark/benchmark.length.complex64.js +++ b/benchmark/benchmark.length.complex64.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isComplexTypedArray = require( '@stdlib/assert-is-complex-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.float32.js b/benchmark/benchmark.length.float32.js index 33ed995..49fccc6 100644 --- a/benchmark/benchmark.length.float32.js +++ b/benchmark/benchmark.length.float32.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.float64.js b/benchmark/benchmark.length.float64.js index ad5dbac..29ee981 100644 --- a/benchmark/benchmark.length.float64.js +++ b/benchmark/benchmark.length.float64.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.int16.js b/benchmark/benchmark.length.int16.js index a4b89d1..6c6b400 100644 --- a/benchmark/benchmark.length.int16.js +++ b/benchmark/benchmark.length.int16.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.int32.js b/benchmark/benchmark.length.int32.js index 75d410d..3978557 100644 --- a/benchmark/benchmark.length.int32.js +++ b/benchmark/benchmark.length.int32.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.int8.js b/benchmark/benchmark.length.int8.js index 1b98556..306ca8d 100644 --- a/benchmark/benchmark.length.int8.js +++ b/benchmark/benchmark.length.int8.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.uint16.js b/benchmark/benchmark.length.uint16.js index 546deba..376f38a 100644 --- a/benchmark/benchmark.length.uint16.js +++ b/benchmark/benchmark.length.uint16.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.uint32.js b/benchmark/benchmark.length.uint32.js index 513c442..139ffea 100644 --- a/benchmark/benchmark.length.uint32.js +++ b/benchmark/benchmark.length.uint32.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.uint8.js b/benchmark/benchmark.length.uint8.js index 5401c40..16c7c50 100644 --- a/benchmark/benchmark.length.uint8.js +++ b/benchmark/benchmark.length.uint8.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/benchmark/benchmark.length.uint8c.js b/benchmark/benchmark.length.uint8c.js index 823af0e..06690e5 100644 --- a/benchmark/benchmark.length.uint8c.js +++ b/benchmark/benchmark.length.uint8c.js @@ -20,7 +20,7 @@ // MODULES // -var bench = require( '@stdlib/bench' ); +var bench = require( '@stdlib/bench-harness' ); var pow = require( '@stdlib/math-base-special-pow' ); var isTypedArray = require( '@stdlib/assert-is-typed-array' ); var pkg = require( './../package.json' ).name; diff --git a/docs/types/index.d.ts b/docs/types/index.d.ts index 1c7e0f5..af5b6c1 100644 --- a/docs/types/index.d.ts +++ b/docs/types/index.d.ts @@ -22,7 +22,7 @@ /// -import { ArrayLike, RealOrComplexTypedArray, RealOrComplexDataType } from '@stdlib/types/array'; +import { ArrayLike, RealOrComplexTypedArray, NumericDataType } from '@stdlib/types/array'; import ArrayBuffer = require( '@stdlib/array-buffer' ); /** @@ -39,7 +39,7 @@ import ArrayBuffer = require( '@stdlib/array-buffer' ); * var arr = typedarray( 'float32'); * // returns */ -declare function typedarray( dtype?: RealOrComplexDataType ): RealOrComplexTypedArray; +declare function typedarray( dtype?: NumericDataType ): RealOrComplexTypedArray; /** * Creates a typed array. @@ -56,7 +56,7 @@ declare function typedarray( dtype?: RealOrComplexDataType ): RealOrComplexTyped * var arr = typedarray( 2, 'float32' ); * // returns [ 0.0, 0.0 ] */ -declare function typedarray( length: number, dtype?: RealOrComplexDataType ): RealOrComplexTypedArray; +declare function typedarray( length: number, dtype?: NumericDataType ): RealOrComplexTypedArray; /** * Creates a typed array. @@ -83,7 +83,7 @@ declare function typedarray( length: number, dtype?: RealOrComplexDataType ): Re * var arr2 = typedarray( arr1, 'uint32' ); * // returns [ 5, 3 ] */ -declare function typedarray( typedarray: RealOrComplexTypedArray, dtype?: RealOrComplexDataType ): RealOrComplexTypedArray; +declare function typedarray( typedarray: RealOrComplexTypedArray, dtype?: NumericDataType ): RealOrComplexTypedArray; /** * Creates a typed array. @@ -100,7 +100,7 @@ declare function typedarray( typedarray: RealOrComplexTypedArray, dtype?: RealOr * var arr = typedarray( [ 5, -3 ], 'int32' ); * // returns [ 5, -3 ] */ -declare function typedarray( obj: ArrayLike | Iterable, dtype?: RealOrComplexDataType ): RealOrComplexTypedArray; +declare function typedarray( obj: ArrayLike | Iterable, dtype?: NumericDataType ): RealOrComplexTypedArray; /** * Creates a typed array. @@ -123,7 +123,7 @@ declare function typedarray( obj: ArrayLike | Iterable, dtype?: Rea * var arr = typedarray( buf, 'float32' ); * // returns [ 0.0, 0.0, 0.0, 0.0 ] */ -declare function typedarray( buffer: ArrayBuffer, dtype?: RealOrComplexDataType ): RealOrComplexTypedArray; +declare function typedarray( buffer: ArrayBuffer, dtype?: NumericDataType ): RealOrComplexTypedArray; /** * Creates a typed array. @@ -147,7 +147,7 @@ declare function typedarray( buffer: ArrayBuffer, dtype?: RealOrComplexDataType * var arr = typedarray( buf, 8, 'float32' ); * // returns [ 0.0, 0.0 ] */ -declare function typedarray( buffer: ArrayBuffer, byteOffset?: number, dtype?: RealOrComplexDataType ): RealOrComplexTypedArray; +declare function typedarray( buffer: ArrayBuffer, byteOffset?: number, dtype?: NumericDataType ): RealOrComplexTypedArray; /** * Creates a typed array. @@ -172,7 +172,7 @@ declare function typedarray( buffer: ArrayBuffer, byteOffset?: number, dtype?: R * var arr = typedarray( buf, 8, 2, 'int32' ); * // returns [ 0, 0 ] */ -declare function typedarray( buffer: ArrayBuffer, byteOffset?: number, length?: number, dtype?: RealOrComplexDataType ): RealOrComplexTypedArray; +declare function typedarray( buffer: ArrayBuffer, byteOffset?: number, length?: number, dtype?: NumericDataType ): RealOrComplexTypedArray; // EXPORTS // diff --git a/package.json b/package.json index 3b22aac..1e46922 100644 --- a/package.json +++ b/package.json @@ -60,12 +60,12 @@ "@stdlib/assert-instance-of": "^0.1.1", "@stdlib/assert-is-complex-typed-array": "^0.1.0", "@stdlib/assert-is-typed-array": "^0.1.0", - "@stdlib/bench": "^0.2.1", "@stdlib/math-base-special-pow": "^0.1.0", "@stdlib/random-base-randu": "^0.1.0", "tape": "git+https://github.com/kgryte/tape.git#fix/globby", "istanbul": "^0.4.1", - "tap-min": "git+https://github.com/Planeshifter/tap-min.git" + "tap-min": "git+https://github.com/Planeshifter/tap-min.git", + "@stdlib/bench-harness": "^0.1.2" }, "engines": { "node": ">=0.10.0",