File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
lib/node_modules/@stdlib/random/iter/lognormal/docs/types Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2121/// <reference types="@stdlib/types"/>
2222
2323import * as random from '@stdlib/types/random' ;
24- import { Iterator } from '@stdlib/types/iter' ;
24+ import { TypedIterator } from '@stdlib/types/iter' ;
2525
2626/**
2727* Interface defining function options.
@@ -56,7 +56,7 @@ interface Options {
5656/**
5757* Interface for iterators of pseudorandom numbers drawn from a lognormal distribution.
5858*/
59- interface RandIter extends Iterator {
59+ interface Iterator < T > extends TypedIterator < T > {
6060 /**
6161 * Underlying PRNG.
6262 */
@@ -113,7 +113,7 @@ interface RandIter extends Iterator {
113113*
114114* // ...
115115*/
116- declare function iterator ( mu : number , sigma : number , options ?: Options ) : RandIter ; // tslint:disable-line:max-line-length
116+ declare function iterator ( mu : number , sigma : number , options ?: Options ) : Iterator < number > ;
117117
118118
119119// EXPORTS //
Original file line number Diff line number Diff line change @@ -23,9 +23,9 @@ import iterator = require( './index' );
2323
2424// The function returns an iterator...
2525{
26- iterator ( - 2.0 , 5.0 ) ; // $ExpectType RandIter
27- iterator ( 2.0 , 5.0 , { } ) ; // $ExpectType RandIter
28- iterator ( 2.0 , 5.0 , { 'iter' : 10 } ) ; // $ExpectType RandIter
26+ iterator ( - 2.0 , 5.0 ) ; // $ExpectType Iterator<number>
27+ iterator ( 2.0 , 5.0 , { } ) ; // $ExpectType Iterator<number>
28+ iterator ( 2.0 , 5.0 , { 'iter' : 10 } ) ; // $ExpectType Iterator<number>
2929}
3030
3131// The compiler throws an error if the function is provided invalid input arguments...
You can’t perform that action at this time.
0 commit comments