@sassoftware/vi-api
Version:
Types used in the SAS Visual Investigator API
12 lines (11 loc) • 477 B
TypeScript
import { FieldType, NumberDataType } from "./data-types";
interface BaseFieldProperties {
type: string;
}
export interface NumberFieldProperties extends BaseFieldProperties {
type: "numberField";
disableThousandsSeparator?: boolean;
}
export type ClientFieldProperties = NumberFieldProperties | undefined;
export type FieldTypeToClientFieldProperties<Type extends FieldType> = Type extends NumberDataType ? NumberFieldProperties : ClientFieldProperties;
export {};