@difizen/mana-syringe
Version:
7 lines • 643 B
JavaScript
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
export function isInversifyContext(data) {
return data && _typeof(data) === 'object' && 'container' in data && isInversifyRegister(data['container']);
}
export function isInversifyRegister(data) {
return data && _typeof(data) === 'object' && 'bind' in data && 'unbind' in data && 'rebind' in data && 'isBound' in data;
}