1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-06-07 17:29:31 +00:00
8bitworkshop/src/ide/store.ts
2020-06-29 12:01:26 -05:00

15 lines
324 B
TypeScript

"use strict";
// TODO: don't need this file anymore?
declare var localforage;
export function createNewPersistentStore(storeid:string, callback?) {
var store = localforage.createInstance({
name: "__" + storeid,
version: 2.0
});
if (callback != null) { callback(store); } // for tests only
return store;
}