Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(key, styles, options: RuleOptions) {
this.key = key
this.options = options
this.rules = new RuleList({
...options,
parent: this
})
for (const selector in styles) {
this.rules.add(selector, styles[selector])
}
this.rules.process()
}
function GlobalContainerRule(key, styles, options) {
_classCallCheck(this, GlobalContainerRule);
this.type = 'global';
this.key = key;
this.options = options;
this.rules = new _jss.RuleList(_extends({}, options, {
parent: this
}));
for (var selector in styles) {
this.rules.add(selector, styles[selector], { selector: selector });
}
this.rules.process();
}