Skip to content

Commit c992ceb

Browse files
committed
fix: update import path for Collection type definition
Ref: stdlib-js@bde4671
1 parent 92caf33 commit c992ceb

16 files changed

Lines changed: 48 additions & 48 deletions

File tree

lib/node_modules/@stdlib/random/strided/arcsine/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -77,7 +77,7 @@ interface Routine {
7777
* // Fill the array with pseudorandom numbers:
7878
* arcsine( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );
7979
*/
80-
<T = any>( N: number, a: Collection, sa: number, b: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
80+
<T = unknown>( N: number, a: Collection, sa: number, b: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
8181

8282
/**
8383
* Fills a strided array with pseudorandom numbers drawn from an arcsine distribution using alternative indexing semantics.
@@ -107,7 +107,7 @@ interface Routine {
107107
* // Fill the array with pseudorandom numbers:
108108
* arcsine.ndarray( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );
109109
*/
110-
ndarray<T = any>( N: number, a: Collection, sa: number, oa: number, b: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
110+
ndarray<T = unknown>( N: number, a: Collection, sa: number, oa: number, b: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
111111
}
112112

113113
/**

lib/node_modules/@stdlib/random/strided/beta/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -77,7 +77,7 @@ interface Routine {
7777
* // Fill the array with pseudorandom numbers:
7878
* beta( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );
7979
*/
80-
<T = any>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
80+
<T = unknown>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
8181

8282
/**
8383
* Fills a strided array with pseudorandom numbers drawn from a beta distribution using alternative indexing semantics.
@@ -107,7 +107,7 @@ interface Routine {
107107
* // Fill the array with pseudorandom numbers:
108108
* beta.ndarray( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );
109109
*/
110-
ndarray<T = any>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
110+
ndarray<T = unknown>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
111111
}
112112

113113
/**

lib/node_modules/@stdlib/random/strided/betaprime/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -77,7 +77,7 @@ interface Routine {
7777
* // Fill the array with pseudorandom numbers:
7878
* betaprime( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );
7979
*/
80-
<T = any>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
80+
<T = unknown>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
8181

8282
/**
8383
* Fills a strided array with pseudorandom numbers drawn from a beta prime distribution using alternative indexing semantics.
@@ -107,7 +107,7 @@ interface Routine {
107107
* // Fill the array with pseudorandom numbers:
108108
* betaprime.ndarray( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );
109109
*/
110-
ndarray<T = any>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
110+
ndarray<T = unknown>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
111111
}
112112

113113
/**

lib/node_modules/@stdlib/random/strided/cosine/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -77,7 +77,7 @@ interface Routine {
7777
* // Fill the array with pseudorandom numbers:
7878
* cosine( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );
7979
*/
80-
<T = any>( N: number, mu: Collection, sm: number, s: Collection, ss: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
80+
<T = unknown>( N: number, mu: Collection, sm: number, s: Collection, ss: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
8181

8282
/**
8383
* Fills a strided array with pseudorandom numbers drawn from a raised cosine distribution using alternative indexing semantics.
@@ -107,7 +107,7 @@ interface Routine {
107107
* // Fill the array with pseudorandom numbers:
108108
* cosine.ndarray( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );
109109
*/
110-
ndarray<T = any>( N: number, mu: Collection, sm: number, om: number, s: Collection, ss: number, os: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
110+
ndarray<T = unknown>( N: number, mu: Collection, sm: number, om: number, s: Collection, ss: number, os: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
111111
}
112112

113113
/**

lib/node_modules/@stdlib/random/strided/discrete-uniform/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -77,7 +77,7 @@ interface Routine {
7777
* // Fill the array with pseudorandom numbers:
7878
* discreteUniform( out.length, [ -10 ], 0, [ 10 ], 0, out, 1 );
7979
*/
80-
<T = any>( N: number, a: Collection, sa: number, b: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
80+
<T = unknown>( N: number, a: Collection, sa: number, b: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
8181

8282
/**
8383
* Fills a strided array with pseudorandom numbers drawn from a discrete uniform distribution using alternative indexing semantics.
@@ -107,7 +107,7 @@ interface Routine {
107107
* // Fill the array with pseudorandom numbers:
108108
* discreteUniform.ndarray( out.length, [ -10 ], 0, 0, [ 10 ], 0, 0, out, 1, 0 );
109109
*/
110-
ndarray<T = any>( N: number, a: Collection, sa: number, oa: number, b: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
110+
ndarray<T = unknown>( N: number, a: Collection, sa: number, oa: number, b: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
111111
}
112112

113113
/**

lib/node_modules/@stdlib/random/strided/exponential/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -75,7 +75,7 @@ interface Routine {
7575
* // Fill the array with pseudorandom numbers:
7676
* exponential( out.length, [ 2.0 ], 0, out, 1 );
7777
*/
78-
<T = any>( N: number, lambda: Collection, sl: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
78+
<T = unknown>( N: number, lambda: Collection, sl: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
7979

8080
/**
8181
* Fills a strided array with pseudorandom numbers drawn from an exponential distribution using alternative indexing semantics.
@@ -102,7 +102,7 @@ interface Routine {
102102
* // Fill the array with pseudorandom numbers:
103103
* exponential.ndarray( out.length, [ 2.0 ], 0, 0, out, 1, 0 );
104104
*/
105-
ndarray<T = any>( N: number, lambda: Collection, sl: number, ol: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
105+
ndarray<T = unknown>( N: number, lambda: Collection, sl: number, ol: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
106106
}
107107

108108
/**

lib/node_modules/@stdlib/random/strided/gamma/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -77,7 +77,7 @@ interface Routine {
7777
* // Fill the array with pseudorandom numbers:
7878
* gamma( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );
7979
*/
80-
<T = any>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
80+
<T = unknown>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
8181

8282
/**
8383
* Fills a strided array with pseudorandom numbers drawn from a gamma distribution using alternative indexing semantics.
@@ -107,7 +107,7 @@ interface Routine {
107107
* // Fill the array with pseudorandom numbers:
108108
* gamma.ndarray( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );
109109
*/
110-
ndarray<T = any>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
110+
ndarray<T = unknown>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
111111
}
112112

113113
/**

lib/node_modules/@stdlib/random/strided/invgamma/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -77,7 +77,7 @@ interface Routine {
7777
* // Fill the array with pseudorandom numbers:
7878
* invgamma( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );
7979
*/
80-
<T = any>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
80+
<T = unknown>( N: number, alpha: Collection, sa: number, beta: Collection, sb: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
8181

8282
/**
8383
* Fills a strided array with pseudorandom numbers drawn from an inverse gamma distribution using alternative indexing semantics.
@@ -107,7 +107,7 @@ interface Routine {
107107
* // Fill the array with pseudorandom numbers:
108108
* invgamma.ndarray( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );
109109
*/
110-
ndarray<T = any>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
110+
ndarray<T = unknown>( N: number, alpha: Collection, sa: number, oa: number, beta: Collection, sb: number, ob: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
111111
}
112112

113113
/**

lib/node_modules/@stdlib/random/strided/lognormal/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -77,7 +77,7 @@ interface Routine {
7777
* // Fill the array with pseudorandom numbers:
7878
* lognormal( out.length, [ 2.0 ], 0, [ 5.0 ], 0, out, 1 );
7979
*/
80-
<T = any>( N: number, mu: Collection, sm: number, sigma: Collection, ss: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
80+
<T = unknown>( N: number, mu: Collection, sm: number, sigma: Collection, ss: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
8181

8282
/**
8383
* Fills a strided array with pseudorandom numbers drawn from a lognormal distribution using alternative indexing semantics.
@@ -107,7 +107,7 @@ interface Routine {
107107
* // Fill the array with pseudorandom numbers:
108108
* lognormal.ndarray( out.length, [ 2.0 ], 0, 0, [ 5.0 ], 0, 0, out, 1, 0 );
109109
*/
110-
ndarray<T = any>( N: number, mu: Collection, sm: number, om: number, sigma: Collection, ss: number, os: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
110+
ndarray<T = unknown>( N: number, mu: Collection, sm: number, om: number, sigma: Collection, ss: number, os: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
111111
}
112112

113113
/**

lib/node_modules/@stdlib/random/strided/minstd-shuffle/docs/types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
/// <reference types="@stdlib/types"/>
2222

2323
import * as random from '@stdlib/types/random';
24-
import { Collection } from '@stdlib/types/object';
24+
import { Collection } from '@stdlib/types/array';
2525

2626
/**
2727
* Interface defining function options.
@@ -67,7 +67,7 @@ interface NormalizedRoutine {
6767
* // Fill the array with pseudorandom numbers:
6868
* minstd.normalized( out.length, out, 1 );
6969
*/
70-
<T = any>( N: number, out: Collection<T>, so: number, options?: Options ): Collection<T>;
70+
<T = unknown>( N: number, out: Collection<T>, so: number, options?: Options ): Collection<T | number>;
7171

7272
/**
7373
* Fills a strided array with pseudorandom numbers on the interval `[0, 1)` using alternative indexing semantics.
@@ -90,7 +90,7 @@ interface NormalizedRoutine {
9090
* // Fill the array with pseudorandom numbers:
9191
* minstd.normalized.ndarray( out.length, out, 1, 0 );
9292
*/
93-
ndarray<T = any>( N: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T>;
93+
ndarray<T = unknown>( N: number, out: Collection<T>, so: number, oo: number, options?: Options ): Collection<T | number>;
9494
}
9595

9696
/**

0 commit comments

Comments
 (0)