Skip to content

Commit 12789d7

Browse files
Expose and import the CustomIterator interface
(instead of relying on TS to provide it automatically)
1 parent 69985be commit 12789d7

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/library/src/base/component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { Plugin, PluginAPI } from './plugin'
44

55
import { makeOptionProxy } from './util/options'
66
import { AbortFlip } from './util/iterators/flipIterable'
7+
import { CustomIterator } from './util/iterators/interface'
78
import { aggregateParentOption } from './util/hierarchy'
89
import { rwProxy } from './util/proxy'
910
import { Row } from '../data/store'

packages/library/src/base/util/iterators/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
interface CustomIterator<T, TReturn = any, TNext = undefined>
1+
export interface CustomIterator<T, TReturn = any, TNext = undefined>
22
extends Iterator<T, TReturn, TNext> {
33
peek: () => [String, String, String][]
44
reset: () => void

packages/library/src/flow/util/iterable.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { CustomIterator } from '../../base/util/iterators/interface'
2+
13
export class CustomIterable<T> {
24
#iterable: Iterable<T>
35
#running: boolean

0 commit comments

Comments
 (0)