respond-framework
Version:
create as fast you think
18 lines (17 loc) • 503 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
const isNamespace = config => {
if (!config) return false;
if (config.pattern) return false;
if (config.namespace !== undefined) return config.namespace;
const keys = Object.keys(config);
return keys.length === 0 ? false : !keys.find(k => knownKeys[k] || typeof config[k] === 'function');
};
var _default = exports.default = isNamespace;
const knownKeys = {
sync: true,
kind: true
};