From 12789d7db25c2f7197798d11d1f94cb70122fe4e Mon Sep 17 00:00:00 2001 From: Felix Henninger Date: Wed, 5 Jul 2023 13:57:01 +0200 Subject: [PATCH] Expose and import the CustomIterator interface (instead of relying on TS to provide it automatically) --- packages/library/src/base/component.ts | 1 + packages/library/src/base/util/iterators/interface.ts | 2 +- packages/library/src/flow/util/iterable.ts | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/library/src/base/component.ts b/packages/library/src/base/component.ts index 9fcea9c34..32e3d16a6 100644 --- a/packages/library/src/base/component.ts +++ b/packages/library/src/base/component.ts @@ -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' diff --git a/packages/library/src/base/util/iterators/interface.ts b/packages/library/src/base/util/iterators/interface.ts index 24bec13f0..5abc37ffd 100644 --- a/packages/library/src/base/util/iterators/interface.ts +++ b/packages/library/src/base/util/iterators/interface.ts @@ -1,4 +1,4 @@ -interface CustomIterator +export interface CustomIterator extends Iterator { peek: () => [String, String, String][] reset: () => void diff --git a/packages/library/src/flow/util/iterable.ts b/packages/library/src/flow/util/iterable.ts index a0e865413..e926579c3 100644 --- a/packages/library/src/flow/util/iterable.ts +++ b/packages/library/src/flow/util/iterable.ts @@ -1,3 +1,5 @@ +import { CustomIterator } from '../../base/util/iterators/interface' + export class CustomIterable { #iterable: Iterable #running: boolean