12345678910111213141516 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- var localforage_driver_commons_1 = require("localforage-driver-commons");
- function getItem(key$, callback) {
- var _this = this;
- key$ = localforage_driver_commons_1.normaliseKey(key$);
- var promise = this.ready().then(function () {
- var result = _this._dbInfo.mStore.get(key$);
- // Deserialise if the result is not null or undefined
- return result == null ? null : _this._dbInfo.serializer.deserialize(result); //tslint:disable-line:triple-equals
- });
- localforage_driver_commons_1.executeCallback(promise, callback);
- return promise;
- }
- exports.getItem = getItem;
- //# sourceMappingURL=getItem.js.map
|