saveMapVersion beta
Function of @v12-engine/client
ts
export declare function saveMapVersion(game: string, version: {
key: string;
name: string;
text: string;
at?: number;
}, storage?: KeptStorage, keep?: number): Promise<MapVersion | undefined>;Keeps a version of a map as it was saved: its file's text, gzipped, beside the ones before, the oldest past keep (MAP_VERSIONS) forgotten. Nothing is kept where the newest is the same text. Gives back what was kept, or nothing