@odata2ts/converter-v2-to-v4
Version:
A set of odata2ts compatible converters to convert certain OData V2 types to their V4 analog
11 lines (10 loc) • 522 B
TypeScript
import { ValueConverter } from "@odata2ts/converter-api";
/**
* V2 type Edm.Time is actually specified in ISO 8601 (day) duration format.
* But Edm.Time was also intended to represent the time of a day, like 12:15:00.
* V4 dispensed with Edm.Time and introduced two new data types: Edm.Duration and Edm.TimeOfDay.
*
* This converter takes an Edm.Time and converts it to Edm.TimeOfDay, which is the well known
* ISO 8601 time format.
*/
export declare const timeToTimeOfDayConverter: ValueConverter<string, string>;