Interface Changeset<T>

This interface is for the old changeset compatibility

interface Changeset<T> {
    changes: Change[];
    data: T;
    errors: ValidationError[];
    isDirty: boolean;
    isInvalid: boolean;
    isPristine: boolean;
    isValid: boolean;
    addError(error): void;
    execute(): void;
    get(key): unknown;
    rollback(): void;
    rollbackProperty(key): void;
    save(options?): Promisable<void>;
    set(key, value): void;
    unexecute(): void;
    validate(fn): Promisable<void>;
}

Type Parameters

  • T extends Record<string, any> = Record<string, any>

Implemented by

Properties

changes: Change[]
data: T
errors: ValidationError[]
isDirty: boolean
isInvalid: boolean
isPristine: boolean
isValid: boolean

Methods