diff --git a/lib/node_modules/@stdlib/random/streams/triangular/docs/types/index.d.ts b/lib/node_modules/@stdlib/random/streams/triangular/docs/types/index.d.ts index bcb0ec9c7228..d4595709adb6 100644 --- a/lib/node_modules/@stdlib/random/streams/triangular/docs/types/index.d.ts +++ b/lib/node_modules/@stdlib/random/streams/triangular/docs/types/index.d.ts @@ -106,6 +106,7 @@ declare class RandomStream extends Readable { * 'iter': 10 * }; * + * var RandomStream = randomStream; * var stream = new RandomStream( 2.0, 5.0, 4.0, opts ); * * stream.pipe( inspectStream( log ) ); @@ -190,6 +191,7 @@ declare class RandomStream extends Readable { * @param error - error * * @example + * var RandomStream = randomStream; * var stream = new RandomStream( 2.0, 5.0, 4.0 ); * stream.on( 'error', onError ); * @@ -227,6 +229,7 @@ interface Constructor { * 'iter': 10 * }; * + * var RandomStream = randomStream; * var stream = new RandomStream( 2.0, 5.0, 4.0, opts ); * * stream.pipe( inspectStream( log ) ); @@ -279,7 +282,7 @@ interface Constructor { * 'highWaterMark': 64 * }; * - * var createStream = RandomStream.factory( 2.0, 5.0, 4.0, opts ); + * var createStream = randomStream.factory( 2.0, 5.0, 4.0, opts ); * * // Create 10 identically configured streams... * var streams = []; @@ -304,7 +307,7 @@ interface Constructor { * 'highWaterMark': 64 * }; * - * var createStream = RandomStream.factory( opts ); + * var createStream = randomStream.factory( opts ); * * // Create 10 identically configured streams... * var streams = []; @@ -338,7 +341,7 @@ interface Constructor { * 'iter': 10 * }; * - * var stream = RandomStream.objectMode( 2.0, 5.0, 4.0, opts ); + * var stream = randomStream.objectMode( 2.0, 5.0, 4.0, opts ); * * stream.pipe( inspectStream.objectMode( log ) ); */ diff --git a/lib/node_modules/@stdlib/random/streams/triangular/docs/types/test.ts b/lib/node_modules/@stdlib/random/streams/triangular/docs/types/test.ts index 2d071fedf865..bbc43d4e9077 100644 --- a/lib/node_modules/@stdlib/random/streams/triangular/docs/types/test.ts +++ b/lib/node_modules/@stdlib/random/streams/triangular/docs/types/test.ts @@ -82,8 +82,8 @@ import RandomStream = require( './index' ); // The compiler throws an error if the constructor is provided invalid input arguments... { - const s1 = new RandomStream( '2.0', 5.0, 4.0 ); // $ExpectError - const s2 = new RandomStream( 2.0, '5.0', 4.0 ); // $ExpectError + new RandomStream( '2.0', 5.0, 4.0 ); // $ExpectError + new RandomStream( 2.0, '5.0', 4.0 ); // $ExpectError } // The compiler throws an error if the `objectMode` method is provided invalid input arguments... @@ -124,9 +124,9 @@ import RandomStream = require( './index' ); // The compiler throws an error if the constructor is provided insufficient arguments... { - const s1 = new RandomStream(); // $ExpectError - const s2 = new RandomStream( 2.0 ); // $ExpectError - const s3 = new RandomStream( 2.0, 5.0 ); // $ExpectError + new RandomStream(); // $ExpectError + new RandomStream( 2.0 ); // $ExpectError + new RandomStream( 2.0, 5.0 ); // $ExpectError } // The compiler throws an error if the `objectMode` method is provided insufficient arguments...