UNPKG

zmp-sdk

Version:

Zalo Mini App SDK

2 lines (1 loc) 729 B
import r from'./../external/@swc/helpers/src/_async_to_generator.mjs.js';import t from"../appEnv/index.js";import o from"../common/notFound.js";import{functionHandler as e}from"../utils/decorator.js";import n from"../common/apis/general/storage/index.js";import{__generator as s}from'./../external/tslib/tslib.es6.js';function i(r){return m.apply(this,arguments)}function m(){return(m=r((function(i){return s(this,(function(m){return[2,e("getStorageInfo",[],[i],r((function(){return s(this,(function(r){switch(r.label){case 0:return t.isMp||t.isMpWeb?[4,n.getStorageInfo()]:[3,2];case 1:return[2,r.sent()];case 2:return[2,Promise.reject(o("getStorageInfo",{}))]}}))})))]}))}))).apply(this,arguments)}export{i as getStorageInfo};