Skip to content

Commit

Permalink
Expose and import the CustomIterator interface
Browse files Browse the repository at this point in the history
(instead of relying on TS to provide it automatically)
  • Loading branch information
FelixHenninger committed Jul 5, 2023
1 parent 69985be commit 12789d7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/library/src/base/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { Plugin, PluginAPI } from './plugin'

import { makeOptionProxy } from './util/options'
import { AbortFlip } from './util/iterators/flipIterable'
import { CustomIterator } from './util/iterators/interface'
import { aggregateParentOption } from './util/hierarchy'
import { rwProxy } from './util/proxy'
import { Row } from '../data/store'
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/base/util/iterators/interface.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
interface CustomIterator<T, TReturn = any, TNext = undefined>
export interface CustomIterator<T, TReturn = any, TNext = undefined>
extends Iterator<T, TReturn, TNext> {
peek: () => [String, String, String][]
reset: () => void
Expand Down
2 changes: 2 additions & 0 deletions packages/library/src/flow/util/iterable.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { CustomIterator } from '../../base/util/iterators/interface'

export class CustomIterable<T> {
#iterable: Iterable<T>
#running: boolean
Expand Down

0 comments on commit 12789d7

Please sign in to comment.