From 2189642791eafe2ad193786d8936ace285b65549 Mon Sep 17 00:00:00 2001 From: Athan Reines Date: Thu, 24 Aug 2023 14:37:15 -0700 Subject: [PATCH] refactor: use predefined type --- .../@stdlib/array/base/ones5d/docs/types/index.d.ts | 4 ++-- lib/node_modules/@stdlib/array/base/ones5d/docs/types/test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/array/base/ones5d/docs/types/index.d.ts b/lib/node_modules/@stdlib/array/base/ones5d/docs/types/index.d.ts index 5f39a91b67a..3eed0639a05 100644 --- a/lib/node_modules/@stdlib/array/base/ones5d/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/array/base/ones5d/docs/types/index.d.ts @@ -20,7 +20,7 @@ /// -import { Collection } from '@stdlib/types/array'; +import { Collection, Array5D } from '@stdlib/types/array'; /** * Returns a five-dimensional nested array filled with ones. @@ -32,7 +32,7 @@ import { Collection } from '@stdlib/types/array'; * var out = ones5d( [ 1, 1, 1, 1, 3 ] ); * // returns [ [ [ [ [ 1.0, 1.0, 1.0 ] ] ] ] ] */ -declare function ones5d( shape: Collection ): Array>>>>; +declare function ones5d( shape: Collection ): Array5D; // EXPORTS // diff --git a/lib/node_modules/@stdlib/array/base/ones5d/docs/types/test.ts b/lib/node_modules/@stdlib/array/base/ones5d/docs/types/test.ts index 948f633daa2..517b8248756 100644 --- a/lib/node_modules/@stdlib/array/base/ones5d/docs/types/test.ts +++ b/lib/node_modules/@stdlib/array/base/ones5d/docs/types/test.ts @@ -23,7 +23,7 @@ import ones5d = require( './index' ); // The function returns a nested array... { - ones5d( [ 1, 1, 1, 1, 3 ] ); // $ExpectType number[][][][][] + ones5d( [ 1, 1, 1, 1, 3 ] ); // $ExpectType Array5D } // The compiler throws an error if the function is provided a first argument which is not an array of numbers...