@herlinus/coloquent
Version:
Library for retrieving model objects from a JSON-API, with a fluent syntax inspired by Laravel Eloquent.
19 lines (18 loc) • 422 B
TypeScript
export declare class Map<T> {
protected data: {
[key: string]: T;
};
protected changed: {
[key: string]: T;
};
constructor();
get(key: string): T;
set(key: string, value: T, original?: boolean): void;
toArray(): {
[key: string]: T;
};
isDirty(): boolean;
hasChanged(key: string): boolean;
flushChanged(): void;
reset(): void;
}