This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type BlockName = string; | |
type ElementName = string | string[]; | |
type ModifierMap = Record<string, unknown>; | |
const isElementName = (elementName?: ElementName | ModifierMap) => | |
typeof elementName === "string" || Array.isArray(elementName); | |
/** | |
* Converts part to kebab case and trims white-space | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Bundle { | |
load(config) { | |
const preconfig = this.preconfig(config); | |
if (typeof preconfig.then === 'function') { | |
return preconfig.then(resolvedPreconfig => { | |
this.config = Object.assign({}, this.config, resolvedPreconfig); | |
this.emit('load', {config: this.config}); | |
}); | |
} else { | |
this.config = Object.assign({}, this.config, preconfig); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"value": "Africa/Asmera", | |
"newValue": "Africa/Nairobi" | |
}, | |
{ | |
"value": "Africa/Timbuktu", | |
"newValue": "Africa/Abidjan" | |
}, | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"dateTime": "2017-01-01T00:00:00.000Z", | |
"items": [ | |
{ | |
"label": "Category", | |
"items": [ | |
{ | |
"label": "Sub-category", | |
"dim1": 5, |