UNPKG

@visactor/vmind

Version:

<div align="center"> <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank"> <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/> </a> <a href="https://githu

32 lines (31 loc) 777 B
export type DataCell = string | number; export type DataItem = Record<string, DataCell>; export type DataTable = DataItem[]; export declare enum DataType { DATE = "date", TIME = "time", STRING = "string", REGION = "region", NUMERICAL = "numerical", RATIO = "ratio", COUNT = "count", FLOAT = "float", INT = "int" } export declare enum ROLE { DIMENSION = "dimension", MEASURE = "measure" } export interface FieldInfo { fieldName: string; alias?: string; description?: string; type: DataType; role: ROLE; location?: ROLE; dataExample?: DataCell[]; domain?: (string | number)[]; unit?: string; ratioGranularity?: '%' | '‰'; dateGranularity?: 'year' | 'quarter' | 'month' | 'week' | 'day'; }