tahamajs's picture
download
raw
686 Bytes
import latest from './reference/latest';
export default function emptyStyle() {
const style = {};
const version = latest['$version'];
for (const styleKey in latest['$root']) {
const spec = latest['$root'][styleKey];
if (spec.required) {
let value = null;
if (styleKey === 'version') {
value = version;
} else {
if (spec.type === 'array') {
value = [];
} else {
value = {};
}
}
if (value != null) {
style[styleKey] = value;
}
}
}
return style;
}

Xet Storage Details

Size:
686 Bytes
·
Xet hash:
aa4e81fc20e90d5e2f67d2cde4f48f5bfc79a66c6c44f6f0a70a029ce7e48f0a

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.