diff --git a/.github/.keepalive b/.github/.keepalive deleted file mode 100644 index c40c62b..0000000 --- a/.github/.keepalive +++ /dev/null @@ -1 +0,0 @@ -2024-01-01T05:58:33.576Z diff --git a/NOTICE b/NOTICE index f7aca1b..e6e7482 100644 --- a/NOTICE +++ b/NOTICE @@ -1 +1 @@ -Copyright (c) 2016-2023 The Stdlib Authors. +Copyright (c) 2016-2024 The Stdlib Authors. diff --git a/docs/types/index.d.ts b/docs/types/index.d.ts index 9e382b8..3717f2c 100644 --- a/docs/types/index.d.ts +++ b/docs/types/index.d.ts @@ -109,7 +109,7 @@ interface NullaryFunction extends PRNG { /** * Interface for generating chi-square distributed pseudorandom numbers without pre-specified parameter values. */ -interface BinaryFunction extends PRNG { +interface UnaryFunction extends PRNG { /** * Returns a chi-square distributed pseudorandom number. * @@ -199,7 +199,7 @@ interface Random extends PRNG { * var v = mychisquare( 2.3 ); * // returns */ - factory( options?: Options ): BinaryFunction; + factory( options?: Options ): UnaryFunction; } /** diff --git a/docs/types/test.ts b/docs/types/test.ts index 0af7826..a89c102 100644 --- a/docs/types/test.ts +++ b/docs/types/test.ts @@ -46,8 +46,8 @@ import chisquare = require( './index' ); // Attached to main export is a `factory` method which returns a function... { chisquare.factory( 2.3 ); // $ExpectType NullaryFunction - chisquare.factory(); // $ExpectType BinaryFunction - chisquare.factory( { 'copy': false } ); // $ExpectType BinaryFunction + chisquare.factory(); // $ExpectType UnaryFunction + chisquare.factory( { 'copy': false } ); // $ExpectType UnaryFunction } // The `factory` method returns a function which returns a number... @@ -115,14 +115,14 @@ import chisquare = require( './index' ); chisquare.factory( 2.3, { 'prng': null } ); // $ExpectError chisquare.factory( 2.3, { 'prng': [] } ); // $ExpectError chisquare.factory( 2.3, { 'prng': {} } ); // $ExpectError - chisquare.factory( 2.3, { 'prng': true ); // $ExpectError + chisquare.factory( 2.3, { 'prng': true } ); // $ExpectError chisquare.factory( { 'prng': 123 } ); // $ExpectError chisquare.factory( { 'prng': 'abc' } ); // $ExpectError chisquare.factory( { 'prng': null } ); // $ExpectError chisquare.factory( { 'prng': [] } ); // $ExpectError chisquare.factory( { 'prng': {} } ); // $ExpectError - chisquare.factory( { 'prng': true ); // $ExpectError + chisquare.factory( { 'prng': true } ); // $ExpectError } // The compiler throws an error if the `factory` method is provided a `seed` option which is not a valid seed... @@ -149,7 +149,7 @@ import chisquare = require( './index' ); chisquare.factory( 2.3, { 'state': null } ); // $ExpectError chisquare.factory( 2.3, { 'state': [] } ); // $ExpectError chisquare.factory( 2.3, { 'state': {} } ); // $ExpectError - chisquare.factory( 2.3, { 'state': true ); // $ExpectError + chisquare.factory( 2.3, { 'state': true } ); // $ExpectError chisquare.factory( 2.3, { 'state': ( x: number ): number => x } ); // $ExpectError chisquare.factory( { 'state': 123 } ); // $ExpectError @@ -157,7 +157,7 @@ import chisquare = require( './index' ); chisquare.factory( { 'state': null } ); // $ExpectError chisquare.factory( { 'state': [] } ); // $ExpectError chisquare.factory( { 'state': {} } ); // $ExpectError - chisquare.factory( { 'state': true ); // $ExpectError + chisquare.factory( { 'state': true } ); // $ExpectError chisquare.factory( { 'state': ( x: number ): number => x } ); // $ExpectError }