Skip to content

Commit 6e77487

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

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

lib/node_modules/@stdlib/random/base/bernoulli/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 Bernoulli distributed pseudorandom numbers without pre-specified parameter values.
111111
*/
112-
interface BinaryFunction extends PRNG {
112+
interface UnaryFunction extends PRNG {
113113
/**
114114
* Returns a Bernoulli distributed pseudorandom number.
115115
*
@@ -199,7 +199,7 @@ interface Random extends PRNG {
199199
* var v = mybernoulli( 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/bernoulli/docs/types/test.ts

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

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

120120
bernoulli.factory( { 'prng': 123 } ); // $ExpectError
121121
bernoulli.factory( { 'prng': 'abc' } ); // $ExpectError
122122
bernoulli.factory( { 'prng': null } ); // $ExpectError
123123
bernoulli.factory( { 'prng': [] } ); // $ExpectError
124124
bernoulli.factory( { 'prng': {} } ); // $ExpectError
125-
bernoulli.factory( { 'prng': true ); // $ExpectError
125+
bernoulli.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 bernoulli = require( './index' );
149149
bernoulli.factory( 0.3, { 'state': null } ); // $ExpectError
150150
bernoulli.factory( 0.3, { 'state': [] } ); // $ExpectError
151151
bernoulli.factory( 0.3, { 'state': {} } ); // $ExpectError
152-
bernoulli.factory( 0.3, { 'state': true ); // $ExpectError
152+
bernoulli.factory( 0.3, { 'state': true } ); // $ExpectError
153153
bernoulli.factory( 0.3, { 'state': ( x: number ): number => x } ); // $ExpectError
154154

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

lib/node_modules/@stdlib/random/base/chi/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 chi distributed pseudorandom numbers without pre-specified parameter values.
111111
*/
112-
interface BinaryFunction extends PRNG {
112+
interface UnaryFunction extends PRNG {
113113
/**
114114
* Returns a chi distributed pseudorandom number.
115115
*
@@ -199,7 +199,7 @@ interface Random extends PRNG {
199199
* var v = mychi( 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/chi/docs/types/test.ts

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

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

120120
chi.factory( { 'prng': 123 } ); // $ExpectError
121121
chi.factory( { 'prng': 'abc' } ); // $ExpectError
122122
chi.factory( { 'prng': null } ); // $ExpectError
123123
chi.factory( { 'prng': [] } ); // $ExpectError
124124
chi.factory( { 'prng': {} } ); // $ExpectError
125-
chi.factory( { 'prng': true ); // $ExpectError
125+
chi.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 chi = require( './index' );
149149
chi.factory( 2.3, { 'state': null } ); // $ExpectError
150150
chi.factory( 2.3, { 'state': [] } ); // $ExpectError
151151
chi.factory( 2.3, { 'state': {} } ); // $ExpectError
152-
chi.factory( 2.3, { 'state': true ); // $ExpectError
152+
chi.factory( 2.3, { 'state': true } ); // $ExpectError
153153
chi.factory( 2.3, { 'state': ( x: number ): number => x } ); // $ExpectError
154154

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

lib/node_modules/@stdlib/random/base/chisquare/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 chi-square distributed pseudorandom numbers without pre-specified parameter values.
111111
*/
112-
interface BinaryFunction extends PRNG {
112+
interface UnaryFunction extends PRNG {
113113
/**
114114
* Returns a chi-square distributed pseudorandom number.
115115
*
@@ -199,7 +199,7 @@ interface Random extends PRNG {
199199
* var v = mychisquare( 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/chisquare/docs/types/test.ts

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

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

120120
chisquare.factory( { 'prng': 123 } ); // $ExpectError
121121
chisquare.factory( { 'prng': 'abc' } ); // $ExpectError
122122
chisquare.factory( { 'prng': null } ); // $ExpectError
123123
chisquare.factory( { 'prng': [] } ); // $ExpectError
124124
chisquare.factory( { 'prng': {} } ); // $ExpectError
125-
chisquare.factory( { 'prng': true ); // $ExpectError
125+
chisquare.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 chisquare = require( './index' );
149149
chisquare.factory( 2.3, { 'state': null } ); // $ExpectError
150150
chisquare.factory( 2.3, { 'state': [] } ); // $ExpectError
151151
chisquare.factory( 2.3, { 'state': {} } ); // $ExpectError
152-
chisquare.factory( 2.3, { 'state': true ); // $ExpectError
152+
chisquare.factory( 2.3, { 'state': true } ); // $ExpectError
153153
chisquare.factory( 2.3, { 'state': ( x: number ): number => x } ); // $ExpectError
154154

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

0 commit comments

Comments
 (0)