API REFERENCE

GridChartTypeVerdict

Fields, allowed values, and APIs that use GridChartTypeVerdict.

Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

typescript
export type GridChartTypeVerdict =
  | {
    readonly status: 'supported';
    readonly chartType: SyChartConcreteType;
    readonly projection: GridChartProjectionKind;
  }
  | {
    readonly status: 'refused';
    readonly chartType: SyChartConcreteType;
    readonly reason: Exclude<GridChartTypeRefusalReason, 'unknown-chart-type'>;
  }
  | {
    readonly status: 'unknown';
    readonly requestedType: string;
    readonly reason: 'unknown-chart-type';
  };

Contracts containing this type