UNPKG

@ts4ocds/requirements

Version:

TS4OCDS is a library of TypeScript entities that takes an approach to befriend large OCDS JSONs with your per-project routine of writing whole lotta interfaces for them.

17 lines (13 loc) 513 B
/** * @packageDocumentation * @module Requirements */ import { ClosedCodeList, CodeList } from '@ts4ocds/utils'; /** * The data type in which the {@link RequirementResponse.RequirementResponse | requirement response} must be provided. */ export const DataTypes = new ClosedCodeList(['string', 'number', 'integer', 'boolean']); /** * The data type in which the {@link RequirementResponse.RequirementResponse | requirement response} must be provided. */ export type DataType = CodeList<typeof DataTypes>;