UNPKG

@golemio/pid

Version:
14 lines (13 loc) 769 B
import { IDataSourceProvider } from "../../shared/datasources/IDataSourceProvider"; import { IMetroRailtrack, IDeparturesDirection } from "../../../schema-definitions/datasources/static-data"; import { IDataSource } from "@golemio/core/dist/integration-engine"; type DataSourceDict = { metroRailTrack: IDataSource<IMetroRailtrack[]>; departuresDirections: IDataSource<IDeparturesDirection[]>; }; export declare class StaticDataSourceFactory { private readonly dataSourceDict; constructor(metroRailTrackDataSourceProvider: IDataSourceProvider<IMetroRailtrack[]>, departuresDirectionDataSourceProvider: IDataSourceProvider<IDeparturesDirection[]>); getDataSource<T extends keyof DataSourceDict>(descriptorProvider: T): DataSourceDict[T]; } export {};