Skip to content

Commit 4368c3b

Browse files
committed
chore: fix variable names
1 parent 6e77487 commit 4368c3b

File tree

10 files changed

+40
-40
lines changed

10 files changed

+40
-40
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface NullaryFunction extends PRNG {
109109
/**
110110
* Interface for generating exponential distributed pseudorandom numbers without pre-specified parameter values.
111111
*/
112-
interface BinaryFunction extends PRNG {
112+
interface UnaryFunction extends PRNG {
113113
/**
114114
* Returns an exponential distributed pseudorandom number.
115115
*
@@ -199,7 +199,7 @@ interface Random extends PRNG {
199199
* var v = myexponential( 2.3 );
200200
* // returns <number>
201201
*/
202-
factory( options?: Options ): BinaryFunction;
202+
factory( options?: Options ): UnaryFunction;
203203
}
204204

205205
/**

lib/node_modules/@stdlib/random/base/exponential/docs/types/test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import exponential = require( './index' );
4646
// Attached to main export is a `factory` method which returns a function...
4747
{
4848
exponential.factory( 2.3 ); // $ExpectType NullaryFunction
49-
exponential.factory(); // $ExpectType BinaryFunction
50-
exponential.factory( { 'copy': false } ); // $ExpectType BinaryFunction
49+
exponential.factory(); // $ExpectType UnaryFunction
50+
exponential.factory( { 'copy': false } ); // $ExpectType UnaryFunction
5151
}
5252

5353
// The `factory` method returns a function which returns a number...
@@ -115,14 +115,14 @@ import exponential = require( './index' );
115115
exponential.factory( 2.3, { 'prng': null } ); // $ExpectError
116116
exponential.factory( 2.3, { 'prng': [] } ); // $ExpectError
117117
exponential.factory( 2.3, { 'prng': {} } ); // $ExpectError
118-
exponential.factory( 2.3, { 'prng': true ); // $ExpectError
118+
exponential.factory( 2.3, { 'prng': true } ); // $ExpectError
119119

120120
exponential.factory( { 'prng': 123 } ); // $ExpectError
121121
exponential.factory( { 'prng': 'abc' } ); // $ExpectError
122122
exponential.factory( { 'prng': null } ); // $ExpectError
123123
exponential.factory( { 'prng': [] } ); // $ExpectError
124124
exponential.factory( { 'prng': {} } ); // $ExpectError
125-
exponential.factory( { 'prng': true ); // $ExpectError
125+
exponential.factory( { 'prng': true } ); // $ExpectError
126126
}
127127

128128
// The compiler throws an error if the `factory` method is provided a `seed` option which is not a valid seed...
@@ -149,15 +149,15 @@ import exponential = require( './index' );
149149
exponential.factory( 2.3, { 'state': null } ); // $ExpectError
150150
exponential.factory( 2.3, { 'state': [] } ); // $ExpectError
151151
exponential.factory( 2.3, { 'state': {} } ); // $ExpectError
152-
exponential.factory( 2.3, { 'state': true ); // $ExpectError
152+
exponential.factory( 2.3, { 'state': true } ); // $ExpectError
153153
exponential.factory( 2.3, { 'state': ( x: number ): number => x } ); // $ExpectError
154154

155155
exponential.factory( { 'state': 123 } ); // $ExpectError
156156
exponential.factory( { 'state': 'abc' } ); // $ExpectError
157157
exponential.factory( { 'state': null } ); // $ExpectError
158158
exponential.factory( { 'state': [] } ); // $ExpectError
159159
exponential.factory( { 'state': {} } ); // $ExpectError
160-
exponential.factory( { 'state': true ); // $ExpectError
160+
exponential.factory( { 'state': true } ); // $ExpectError
161161
exponential.factory( { 'state': ( x: number ): number => x } ); // $ExpectError
162162
}
163163

lib/node_modules/@stdlib/random/base/geometric/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface NullaryFunction extends PRNG {
109109
/**
110110
* Interface for generating geometric distributed pseudorandom numbers without pre-specified parameter values.
111111
*/
112-
interface BinaryFunction extends PRNG {
112+
interface UnaryFunction extends PRNG {
113113
/**
114114
* Returns a geometric distributed pseudorandom number.
115115
*
@@ -199,7 +199,7 @@ interface Random extends PRNG {
199199
* var v = mygeometric( 0.3 );
200200
* // returns <number>
201201
*/
202-
factory( options?: Options ): BinaryFunction;
202+
factory( options?: Options ): UnaryFunction;
203203
}
204204

205205
/**

lib/node_modules/@stdlib/random/base/geometric/docs/types/test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import geometric = require( './index' );
4646
// Attached to main export is a `factory` method which returns a function...
4747
{
4848
geometric.factory( 0.3 ); // $ExpectType NullaryFunction
49-
geometric.factory(); // $ExpectType BinaryFunction
50-
geometric.factory( { 'copy': false } ); // $ExpectType BinaryFunction
49+
geometric.factory(); // $ExpectType UnaryFunction
50+
geometric.factory( { 'copy': false } ); // $ExpectType UnaryFunction
5151
}
5252

5353
// The `factory` method returns a function which returns a number...
@@ -115,14 +115,14 @@ import geometric = require( './index' );
115115
geometric.factory( 0.3, { 'prng': null } ); // $ExpectError
116116
geometric.factory( 0.3, { 'prng': [] } ); // $ExpectError
117117
geometric.factory( 0.3, { 'prng': {} } ); // $ExpectError
118-
geometric.factory( 0.3, { 'prng': true ); // $ExpectError
118+
geometric.factory( 0.3, { 'prng': true } ); // $ExpectError
119119

120120
geometric.factory( { 'prng': 123 } ); // $ExpectError
121121
geometric.factory( { 'prng': 'abc' } ); // $ExpectError
122122
geometric.factory( { 'prng': null } ); // $ExpectError
123123
geometric.factory( { 'prng': [] } ); // $ExpectError
124124
geometric.factory( { 'prng': {} } ); // $ExpectError
125-
geometric.factory( { 'prng': true ); // $ExpectError
125+
geometric.factory( { 'prng': true } ); // $ExpectError
126126
}
127127

128128
// The compiler throws an error if the `factory` method is provided a `seed` option which is not a valid seed...
@@ -149,15 +149,15 @@ import geometric = require( './index' );
149149
geometric.factory( 0.3, { 'state': null } ); // $ExpectError
150150
geometric.factory( 0.3, { 'state': [] } ); // $ExpectError
151151
geometric.factory( 0.3, { 'state': {} } ); // $ExpectError
152-
geometric.factory( 0.3, { 'state': true ); // $ExpectError
152+
geometric.factory( 0.3, { 'state': true } ); // $ExpectError
153153
geometric.factory( 0.3, { 'state': ( x: number ): number => x } ); // $ExpectError
154154

155155
geometric.factory( { 'state': 123 } ); // $ExpectError
156156
geometric.factory( { 'state': 'abc' } ); // $ExpectError
157157
geometric.factory( { 'state': null } ); // $ExpectError
158158
geometric.factory( { 'state': [] } ); // $ExpectError
159159
geometric.factory( { 'state': {} } ); // $ExpectError
160-
geometric.factory( { 'state': true ); // $ExpectError
160+
geometric.factory( { 'state': true } ); // $ExpectError
161161
geometric.factory( { 'state': ( x: number ): number => x } ); // $ExpectError
162162
}
163163

lib/node_modules/@stdlib/random/base/poisson/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface NullaryFunction extends PRNG {
109109
/**
110110
* Interface for generating Poisson distributed pseudorandom numbers without pre-specified parameter values.
111111
*/
112-
interface BinaryFunction extends PRNG {
112+
interface UnaryFunction extends PRNG {
113113
/**
114114
* Returns a Poisson distributed pseudorandom number.
115115
*
@@ -199,7 +199,7 @@ interface Random extends PRNG {
199199
* var v = mypoisson( 2.3 );
200200
* // returns <number>
201201
*/
202-
factory( options?: Options ): BinaryFunction;
202+
factory( options?: Options ): UnaryFunction;
203203
}
204204

205205
/**

lib/node_modules/@stdlib/random/base/poisson/docs/types/test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import poisson = require( './index' );
4646
// Attached to main export is a `factory` method which returns a function...
4747
{
4848
poisson.factory( 2.3 ); // $ExpectType NullaryFunction
49-
poisson.factory(); // $ExpectType BinaryFunction
50-
poisson.factory( { 'copy': false } ); // $ExpectType BinaryFunction
49+
poisson.factory(); // $ExpectType UnaryFunction
50+
poisson.factory( { 'copy': false } ); // $ExpectType UnaryFunction
5151
}
5252

5353
// The `factory` method returns a function which returns a number...
@@ -115,14 +115,14 @@ import poisson = require( './index' );
115115
poisson.factory( 2.3, { 'prng': null } ); // $ExpectError
116116
poisson.factory( 2.3, { 'prng': [] } ); // $ExpectError
117117
poisson.factory( 2.3, { 'prng': {} } ); // $ExpectError
118-
poisson.factory( 2.3, { 'prng': true ); // $ExpectError
118+
poisson.factory( 2.3, { 'prng': true } ); // $ExpectError
119119

120120
poisson.factory( { 'prng': 123 } ); // $ExpectError
121121
poisson.factory( { 'prng': 'abc' } ); // $ExpectError
122122
poisson.factory( { 'prng': null } ); // $ExpectError
123123
poisson.factory( { 'prng': [] } ); // $ExpectError
124124
poisson.factory( { 'prng': {} } ); // $ExpectError
125-
poisson.factory( { 'prng': true ); // $ExpectError
125+
poisson.factory( { 'prng': true } ); // $ExpectError
126126
}
127127

128128
// The compiler throws an error if the `factory` method is provided a `seed` option which is not a valid seed...
@@ -149,15 +149,15 @@ import poisson = require( './index' );
149149
poisson.factory( 2.3, { 'state': null } ); // $ExpectError
150150
poisson.factory( 2.3, { 'state': [] } ); // $ExpectError
151151
poisson.factory( 2.3, { 'state': {} } ); // $ExpectError
152-
poisson.factory( 2.3, { 'state': true ); // $ExpectError
152+
poisson.factory( 2.3, { 'state': true } ); // $ExpectError
153153
poisson.factory( 2.3, { 'state': ( x: number ): number => x } ); // $ExpectError
154154

155155
poisson.factory( { 'state': 123 } ); // $ExpectError
156156
poisson.factory( { 'state': 'abc' } ); // $ExpectError
157157
poisson.factory( { 'state': null } ); // $ExpectError
158158
poisson.factory( { 'state': [] } ); // $ExpectError
159159
poisson.factory( { 'state': {} } ); // $ExpectError
160-
poisson.factory( { 'state': true ); // $ExpectError
160+
poisson.factory( { 'state': true } ); // $ExpectError
161161
poisson.factory( { 'state': ( x: number ): number => x } ); // $ExpectError
162162
}
163163

lib/node_modules/@stdlib/random/base/rayleigh/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface NullaryFunction extends PRNG {
109109
/**
110110
* Interface for generating Rayleigh distributed pseudorandom numbers without pre-specified parameter values.
111111
*/
112-
interface BinaryFunction extends PRNG {
112+
interface UnaryFunction extends PRNG {
113113
/**
114114
* Returns a Rayleigh distributed pseudorandom number.
115115
*
@@ -199,7 +199,7 @@ interface Random extends PRNG {
199199
* var v = myrayleigh( 2.3 );
200200
* // returns <number>
201201
*/
202-
factory( options?: Options ): BinaryFunction;
202+
factory( options?: Options ): UnaryFunction;
203203
}
204204

205205
/**

lib/node_modules/@stdlib/random/base/rayleigh/docs/types/test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import rayleigh = require( './index' );
4646
// Attached to main export is a `factory` method which returns a function...
4747
{
4848
rayleigh.factory( 2.3 ); // $ExpectType NullaryFunction
49-
rayleigh.factory(); // $ExpectType BinaryFunction
50-
rayleigh.factory( { 'copy': false } ); // $ExpectType BinaryFunction
49+
rayleigh.factory(); // $ExpectType UnaryFunction
50+
rayleigh.factory( { 'copy': false } ); // $ExpectType UnaryFunction
5151
}
5252

5353
// The `factory` method returns a function which returns a number...
@@ -115,14 +115,14 @@ import rayleigh = require( './index' );
115115
rayleigh.factory( 2.3, { 'prng': null } ); // $ExpectError
116116
rayleigh.factory( 2.3, { 'prng': [] } ); // $ExpectError
117117
rayleigh.factory( 2.3, { 'prng': {} } ); // $ExpectError
118-
rayleigh.factory( 2.3, { 'prng': true ); // $ExpectError
118+
rayleigh.factory( 2.3, { 'prng': true } ); // $ExpectError
119119

120120
rayleigh.factory( { 'prng': 123 } ); // $ExpectError
121121
rayleigh.factory( { 'prng': 'abc' } ); // $ExpectError
122122
rayleigh.factory( { 'prng': null } ); // $ExpectError
123123
rayleigh.factory( { 'prng': [] } ); // $ExpectError
124124
rayleigh.factory( { 'prng': {} } ); // $ExpectError
125-
rayleigh.factory( { 'prng': true ); // $ExpectError
125+
rayleigh.factory( { 'prng': true } ); // $ExpectError
126126
}
127127

128128
// The compiler throws an error if the `factory` method is provided a `seed` option which is not a valid seed...
@@ -149,15 +149,15 @@ import rayleigh = require( './index' );
149149
rayleigh.factory( 2.3, { 'state': null } ); // $ExpectError
150150
rayleigh.factory( 2.3, { 'state': [] } ); // $ExpectError
151151
rayleigh.factory( 2.3, { 'state': {} } ); // $ExpectError
152-
rayleigh.factory( 2.3, { 'state': true ); // $ExpectError
152+
rayleigh.factory( 2.3, { 'state': true } ); // $ExpectError
153153
rayleigh.factory( 2.3, { 'state': ( x: number ): number => x } ); // $ExpectError
154154

155155
rayleigh.factory( { 'state': 123 } ); // $ExpectError
156156
rayleigh.factory( { 'state': 'abc' } ); // $ExpectError
157157
rayleigh.factory( { 'state': null } ); // $ExpectError
158158
rayleigh.factory( { 'state': [] } ); // $ExpectError
159159
rayleigh.factory( { 'state': {} } ); // $ExpectError
160-
rayleigh.factory( { 'state': true ); // $ExpectError
160+
rayleigh.factory( { 'state': true } ); // $ExpectError
161161
rayleigh.factory( { 'state': ( x: number ): number => x } ); // $ExpectError
162162
}
163163

lib/node_modules/@stdlib/random/base/t/docs/types/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ interface NullaryFunction extends PRNG {
109109
/**
110110
* Interface for generating t-distributed pseudorandom numbers without pre-specified parameter values.
111111
*/
112-
interface BinaryFunction extends PRNG {
112+
interface UnaryFunction extends PRNG {
113113
/**
114114
* Returns a t-distributed pseudorandom number.
115115
*
@@ -199,7 +199,7 @@ interface Random extends PRNG {
199199
* var v = myt( 2.3 );
200200
* // returns <number>
201201
*/
202-
factory( options?: Options ): BinaryFunction;
202+
factory( options?: Options ): UnaryFunction;
203203
}
204204

205205
/**

lib/node_modules/@stdlib/random/base/t/docs/types/test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ import t = require( './index' );
4646
// Attached to main export is a `factory` method which returns a function...
4747
{
4848
t.factory( 2.3 ); // $ExpectType NullaryFunction
49-
t.factory(); // $ExpectType BinaryFunction
50-
t.factory( { 'copy': false } ); // $ExpectType BinaryFunction
49+
t.factory(); // $ExpectType UnaryFunction
50+
t.factory( { 'copy': false } ); // $ExpectType UnaryFunction
5151
}
5252

5353
// The `factory` method returns a function which returns a number...
@@ -115,14 +115,14 @@ import t = require( './index' );
115115
t.factory( 2.3, { 'prng': null } ); // $ExpectError
116116
t.factory( 2.3, { 'prng': [] } ); // $ExpectError
117117
t.factory( 2.3, { 'prng': {} } ); // $ExpectError
118-
t.factory( 2.3, { 'prng': true ); // $ExpectError
118+
t.factory( 2.3, { 'prng': true } ); // $ExpectError
119119

120120
t.factory( { 'prng': 123 } ); // $ExpectError
121121
t.factory( { 'prng': 'abc' } ); // $ExpectError
122122
t.factory( { 'prng': null } ); // $ExpectError
123123
t.factory( { 'prng': [] } ); // $ExpectError
124124
t.factory( { 'prng': {} } ); // $ExpectError
125-
t.factory( { 'prng': true ); // $ExpectError
125+
t.factory( { 'prng': true } ); // $ExpectError
126126
}
127127

128128
// The compiler throws an error if the `factory` method is provided a `seed` option which is not a valid seed...
@@ -149,15 +149,15 @@ import t = require( './index' );
149149
t.factory( 2.3, { 'state': null } ); // $ExpectError
150150
t.factory( 2.3, { 'state': [] } ); // $ExpectError
151151
t.factory( 2.3, { 'state': {} } ); // $ExpectError
152-
t.factory( 2.3, { 'state': true ); // $ExpectError
152+
t.factory( 2.3, { 'state': true } ); // $ExpectError
153153
t.factory( 2.3, { 'state': ( x: number ): number => x } ); // $ExpectError
154154

155155
t.factory( { 'state': 123 } ); // $ExpectError
156156
t.factory( { 'state': 'abc' } ); // $ExpectError
157157
t.factory( { 'state': null } ); // $ExpectError
158158
t.factory( { 'state': [] } ); // $ExpectError
159159
t.factory( { 'state': {} } ); // $ExpectError
160-
t.factory( { 'state': true ); // $ExpectError
160+
t.factory( { 'state': true } ); // $ExpectError
161161
t.factory( { 'state': ( x: number ): number => x } ); // $ExpectError
162162
}
163163

0 commit comments

Comments
 (0)