UNPKG

tggl-client

Version:

Tggl Typescript SDK for client and server

16 lines (15 loc) 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertValidContext = void 0; var assertValidContext = function (context) { if (context === undefined || context === null) { throw new Error('Invalid Tggl context, context is missing'); } if (typeof context !== 'object') { throw new Error('Invalid Tggl context, context must be an object'); } if (Array.isArray(context)) { throw new Error('Invalid Tggl context, context cannot be an array'); } }; exports.assertValidContext = assertValidContext;