// Package: com.lightningkite.lightningdb // Generated by Khrysalis - this file will be overwritten. import { ReifiedType, setUpDataClass } from '@lightningkite/khrysalis-runtime' //! Declares com.lightningkite.lightningdb.EntryChange export class EntryChange { public constructor(public readonly old: (T | null) = null, public readonly _new: (T | null) = null) { } public static properties = ["old", "_new"] public static propertiesJsonOverride = {_new: "new"} public static propertyTypes(T: ReifiedType) { return {old: T, _new: T} } copy: (values: Partial>) => this; equals: (other: any) => boolean; hashCode: () => number; } setUpDataClass(EntryChange) //! Declares com.lightningkite.lightningdb.map>com.lightningkite.lightningdb.EntryChangecom.lightningkite.lightningdb.map.T export function xEntryChangeMap(this_: EntryChange, mapper: ((a: T) => B)): EntryChange { return new EntryChange(((): (B | null) => { const temp0 = this_.old; if (temp0 === null || temp0 === undefined) { return null } return (mapper)(temp0) })(), ((): (B | null) => { const temp1 = this_._new; if (temp1 === null || temp1 === undefined) { return null } return (mapper)(temp1) })()); }