UNPKG

@w6s/sdk

Version:

WorkPlusFE JavaScript SDK.

15 lines (14 loc) 601 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var core = require("../core"); var constants_1 = require("../constants"); /** * 获取设备信息 * @description 获取当前设备和 APP 的一些信息 * @param {DeviceOptions<[], AppInfoRes>} [options] * @returns {Promise<AppInfoRes>} */ function getDeviceInfo(options) { return core.exec(constants_1.WORKPLUS_PUBLIC_CLOUND, 'getAppInfo', [], options === null || options === void 0 ? void 0 : options.success, options === null || options === void 0 ? void 0 : options.fail); } exports.default = getDeviceInfo;