types/schema.types.ts
types/schema.types.ts is a file in GovLab Patterns. 10 lines of code and 3 definitions.
export type Kind = "list-of-objects" | "list" | "object" | "scalar";
export type Primitive = "boolean" | "float" | "integer" | "string";
export interface FieldSchema {
name: string;
kind: Kind;
primitive: Primitive | null;
nullable: boolean;
elementNumeric: boolean;
fixedLength: number | null;
}