UNPKG

@ts4ocds/core

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.

26 lines (22 loc) 890 B
/** * @packageDocumentation * @module Standard.Period */ import type { Period } from './period'; /** * Key events during a contracting process may have a known {@link Period.startDate | start date}, {@link Period.endDate | end date}, {@link Period.durationInDays | duration}, * or {@link Period.maxExtentDate | maximum extent} (the latest date the period can extend to). * In some cases, not all of these fields will have known or relevant values. */ export interface ExtendedPeriod extends Period { /** * The start date for the period. * When known, a precise start date must be provided. */ startDate: NonNullable<Period['startDate']>; /** * The period cannot be extended beyond this date. * This field can be used to express the maximum available date for extension or renewal of this period. */ maxExtentDate: NonNullable<Period['maxExtentDate']>; }