UNPKG

scichart-angular

Version:

Angular wrapper for SciChart JS

12 lines (11 loc) 758 B
import { ISciChartSurfaceBase, SciChartSurface } from "scichart"; /** Describes the core return type of a chart initialization function */ export interface IInitResult<TSurface extends ISciChartSurfaceBase = ISciChartSurfaceBase> { sciChartSurface: TSurface; } /** * Describes the type of a chart initialization function * @param rootElement the internal element that should be used to create a chart * @returns a Promise with the initialization result object containing the created surface reference as `sciChartSurface` property */ export type TInitFunction<TSurface extends ISciChartSurfaceBase = SciChartSurface, TInitResult extends IInitResult<TSurface> = IInitResult<TSurface>> = (rootElement: string | HTMLDivElement) => Promise<TInitResult>;