@barchart/chart-lib 2.228.4 → 2.229.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2302,16 +2302,28 @@ declare module "@barchart/chart-lib" {
2302
2302
  | "PointAndFigure"
2303
2303
  | "Baseline";
2304
2304
 
2305
+ export type AnnotationDataType = "bool" | "line" | "array" | "string" | "object" | "number" | "color";
2306
+
2307
+ export interface AnnotationType {
2308
+ id: string;
2309
+ type: AnnotationDataType;
2310
+ description: string;
2311
+ }
2312
+
2313
+ export interface AnnotationConfig {
2314
+ id: AnnotationId;
2315
+ options: string[];
2316
+ types: AnnotationType[];
2317
+ numPoints: number;
2318
+ }
2319
+
2305
2320
  interface Taxonomies {
2306
2321
  studies: Study[];
2307
2322
  incomeStatements: IncomeStatement[];
2308
2323
  balanceSheets: BalanceSheet[];
2309
2324
  studyFields: StudyField[];
2310
2325
  curveStyles: CurveStyle[];
2311
- annotations: Array<{
2312
- id: string;
2313
- options: Array<string>;
2314
- }>;
2326
+ annotations: AnnotationConfig[];
2315
2327
  }
2316
2328
 
2317
2329
  export function getTaxonomies(): Taxonomies;