Skip to content

Commit 2acce6f

Browse files
committed
Import shared type
1 parent eee5806 commit 2acce6f

File tree

1 file changed

+2
-19
lines changed
  • lib/node_modules/@stdlib/iter/some/docs/types

1 file changed

+2
-19
lines changed

lib/node_modules/@stdlib/iter/some/docs/types/index.d.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,9 @@
1818

1919
// TypeScript Version: 2.0
2020

21-
interface Iterator {
22-
/**
23-
* Returns an iterator protocol-compliant object containing the next iterated value (if one exists) and a boolean flag indicating whether the iterator is finished.
24-
*
25-
* @returns iterator protocol-compliant object
26-
*/
27-
next(): IteratorResult;
28-
}
21+
/// <reference types="@stdlib/types"/>
2922

30-
interface IteratorResult {
31-
/**
32-
* Iterated value (if one exists).
33-
*/
34-
value?: any;
35-
36-
/**
37-
* Boolean flag indicating whether the iterator is finished.
38-
*/
39-
done: boolean;
40-
}
23+
import { Iterator } from '@stdlib/types/iterator';
4124

4225
/**
4326
* Tests whether at least `n` iterated values are truthy.

0 commit comments

Comments
 (0)