saveMap beta
Function of @v12-engine/client
ts
export declare function saveMap(map: GameMap, id?: string, file?: string, preview?: string, storage?: KeptStorage): Promise<string>;Keeps a map in the browser (IndexedDB). Resolves to its id, a new one when it had none. Rejects when the browser has no room. file says which map file of the project it is a copy of, if it is one; preview is a small picture of it for the list. Each of these keeps under the app's name (storage, its runtime's), the page's when left out