UNPKG

@lightningkite/ktor-batteries

Version:
36 lines 1.31 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.xEntryChangeMap = exports.EntryChange = void 0; // Package: com.lightningkite.ktordb // Generated by Khrysalis - this file will be overwritten. const khrysalis_runtime_1 = require("@lightningkite/khrysalis-runtime"); //! Declares com.lightningkite.ktordb.EntryChange class EntryChange { constructor(old = null, _new = null) { this.old = old; this._new = _new; } static propertyTypes(T) { return { old: T, _new: T }; } } exports.EntryChange = EntryChange; EntryChange.properties = ["old", "_new"]; EntryChange.propertiesJsonOverride = { _new: "new" }; (0, khrysalis_runtime_1.setUpDataClass)(EntryChange); //! Declares com.lightningkite.ktordb.map>com.lightningkite.ktordb.EntryChangecom.lightningkite.ktordb.map.T function xEntryChangeMap(this_, mapper) { return new EntryChange((() => { const temp0 = this_.old; if (temp0 === null) { return null; } return (mapper)(temp0); })(), (() => { const temp1 = this_._new; if (temp1 === null) { return null; } return (mapper)(temp1); })()); } exports.xEntryChangeMap = xEntryChangeMap; //# sourceMappingURL=EntryChange.js.map