MCPcopy Create free account
hub / github.com/composify-js/composify / populateDefaults

Method populateDefaults

packages/react/src/renderer/Block/Block.ts:57–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 }
56
57 private populateDefaults() {
58 for (const spec of Object.values(this.props)) {
59 const typedSpec = spec as PropertySpec<any>;
60
61 this.setSpecDefault(typedSpec);
62 }
63 }
64
65 private setSpecDefault(spec: PropertySpec<any>) {
66 spec.hasDefault = typeof spec.default !== 'undefined';

Callers 1

constructorMethod · 0.95

Calls 1

setSpecDefaultMethod · 0.95

Tested by

no test coverage detected