UNPKG

@microsoft/teams-js

Version:

Microsoft Client SDK for building app for Microsoft hosts

2 lines (1 loc) 248 B
import{ExternalAppErrorCode as e}from"./constants.js";function t(t){if("object"!=typeof t||null===t)return!1;const o=t;return Object.values(e).includes(o.errorCode)&&(void 0===o.message||"string"==typeof o.message)}export{t as isExternalAppError};