config-loader: add ConfigSourceIteratorItem
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -12,21 +12,9 @@ import { Observable } from '@backstage/types';
|
||||
|
||||
// @public
|
||||
export interface AsyncConfigSourceIterator
|
||||
extends AsyncIterator<
|
||||
{
|
||||
configs: ConfigSourceData[];
|
||||
},
|
||||
void,
|
||||
void
|
||||
> {
|
||||
extends AsyncIterator<ConfigSourceIteratorItem, void, void> {
|
||||
// (undocumented)
|
||||
[Symbol.asyncIterator](): AsyncIterator<
|
||||
{
|
||||
configs: ConfigSourceData[];
|
||||
},
|
||||
void,
|
||||
void
|
||||
>;
|
||||
[Symbol.asyncIterator](): AsyncIterator<ConfigSourceIteratorItem, void, void>;
|
||||
}
|
||||
|
||||
// @public
|
||||
@@ -73,6 +61,12 @@ export interface ConfigSourceData extends AppConfig {
|
||||
path?: string;
|
||||
}
|
||||
|
||||
// @public
|
||||
export interface ConfigSourceIteratorItem {
|
||||
// (undocumented)
|
||||
configs: ConfigSourceData[];
|
||||
}
|
||||
|
||||
// @public
|
||||
export class ConfigSources {
|
||||
static default(options: ConfigSourcesDefaultOptions): ConfigSource;
|
||||
|
||||
@@ -38,4 +38,5 @@ export type {
|
||||
ConfigSourceData,
|
||||
ReadConfigDataOptions,
|
||||
AsyncConfigSourceIterator,
|
||||
ConfigSourceIteratorItem,
|
||||
} from './types';
|
||||
|
||||
@@ -43,12 +43,17 @@ export interface ReadConfigDataOptions {
|
||||
* @public
|
||||
*/
|
||||
export interface AsyncConfigSourceIterator
|
||||
extends AsyncIterator<{ configs: ConfigSourceData[] }, void, void> {
|
||||
[Symbol.asyncIterator](): AsyncIterator<
|
||||
{ configs: ConfigSourceData[] },
|
||||
void,
|
||||
void
|
||||
>;
|
||||
extends AsyncIterator<ConfigSourceIteratorItem, void, void> {
|
||||
[Symbol.asyncIterator](): AsyncIterator<ConfigSourceIteratorItem, void, void>;
|
||||
}
|
||||
|
||||
/**
|
||||
* An item returned by {@link AsyncConfigSourceIterator}.
|
||||
*
|
||||
* @public
|
||||
*/
|
||||
export interface ConfigSourceIteratorItem {
|
||||
configs: ConfigSourceData[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user