@ts4ocds/options
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.
19 lines (14 loc) • 567 B
TypeScript
/**
* @packageDocumentation
* @module Options.Option
*/
import type { Dimensions } from '@ts4ocds/metrics/observation';
import type { Option } from './option';
/**
* Available prescribed option for {@link Requirement.Requirement | requirement}/{@link Observation.Observation | observation}
* that can be set as a value for {@link RequirementResponse.RequirementResponse | bid.requirementResponse}/{@link Award.Award | award}.
*/
export interface RangedOption<D extends Dimensions = undefined> extends Option<D> {
minValue?: number;
maxValue?: number;
}