UNPKG

@4ex/indicators

Version:

Technical indicators for ohlc charts written in TypeScript

16 lines (15 loc) 552 B
import { Indicator } from '../indicators'; import { IndicatorsEnum } from '../types'; /** * Factory class to get instance of indicators present in store. */ export declare class FactoryIndicators { /** * Get class present in Store for specified indicators * @param {IndicatorsEnum | string} indicatorClass indicator class name * to retrieve * @return {Indicator} indicator Class * @throws {Error} Unrecognized indicator type */ static getClass<T extends Indicator>(indicatorClass: IndicatorsEnum | string): T; }