UNPKG

mana-syringe

Version:

IoC library for mana, easily to use.

17 lines (13 loc) 811 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isInversifyContext = isInversifyContext; exports.isInversifyRegister = isInversifyRegister; function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } function isInversifyContext(data) { return data && _typeof(data) === 'object' && 'container' in data && 'inversify' in data; } function isInversifyRegister(data) { return data && _typeof(data) === 'object' && 'bind' in data && 'unbind' in data && 'rebind' in data && 'isBound' in data; }