MCPcopy
hub / github.com/pascalorg/editor / has

Function has

packages/core/src/schema/nodes/dormer.ts:136–137  ·  view source on GitHub ↗
(spec: DormerSurfaceMaterialSpec)

Source from the content-addressed store, hash-verified

134 materialPreset: node.materialPreset,
135 }
136 const has = (spec: DormerSurfaceMaterialSpec) =>
137 spec.material !== undefined || typeof spec.materialPreset === 'string'
138
139 if (role === 'top') return has(top) ? top : legacy
140 if (role === 'side') return has(side) ? side : has(wall) ? wall : legacy

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected