Types & Interfaces

1 min read

Some types and interfaces:

import { ChartKnowledge, DataPrerequisite } from '@antv/ckb';

ChartKnowledge

interface ChartKnowledge {
  id: ChartID;
  name: string;
  alias: string[];
  family?: Family[];
  def?: string;
  purpose?: Purpose[];
  coord?: CoordinateSystem[];
  category?: GraphicCategory[];
  shape?: Shape[];
  dataPres?: DataPrerequisite[];
  channel?: Channel[];
}

DataPrerequisite

interface DataPrerequisite {
  minQty: number;
  maxQty: number | '*';
  fieldConditions: LevelOfMeasurement[];
}

Language

type Language = 'en-US' | 'zh-CN';

TransKnowledgeProps

interface TransKnowledgeProps {
  name: string;
  alias: string[];
  def: string;
}