@lightningkite/ktor-batteries
Version:
19 lines (18 loc) • 721 B
TypeScript
import { ReifiedType } from '@lightningkite/khrysalis-runtime';
export declare class EntryChange<T extends any> {
readonly old: (T | null);
readonly _new: (T | null);
constructor(old?: (T | null), _new?: (T | null));
static properties: string[];
static propertiesJsonOverride: {
_new: string;
};
static propertyTypes(T: ReifiedType): {
old: ReifiedType<unknown>;
_new: ReifiedType<unknown>;
};
copy: (values: Partial<EntryChange<T>>) => this;
equals: (other: any) => boolean;
hashCode: () => number;
}
export declare function xEntryChangeMap<T extends any, B extends any>(this_: EntryChange<T>, mapper: ((a: T) => B)): EntryChange<B>;