UNPKG

@odata2ts/converter-v2-to-v4

Version:

A set of odata2ts compatible converters to convert certain OData V2 types to their V4 analog

20 lines 627 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.timeToDurationConverter = void 0; const odata_core_1 = require("@odata2ts/odata-core"); /** * V2 type Edm.Time is actually specified in ISO8601 duration format. * Hence, only relabeling is needed. */ exports.timeToDurationConverter = { id: "timeToDurationConverter", from: odata_core_1.ODataTypesV2.Time, to: odata_core_1.ODataTypesV4.Duration, convertFrom: function (value) { return value; }, convertTo: function (value) { return value; }, }; //# sourceMappingURL=TimeToDurationConverter.js.map