(components: Map<string, ComponentDef>)
| 18 | import type { ComponentDef } from '../linter/model/spec.js'; |
| 19 | |
| 20 | function serializeComponents(components: Map<string, ComponentDef>): Map<string, Record<string, unknown>> { |
| 21 | const result = new Map<string, Record<string, unknown>>(); |
| 22 | for (const [name, comp] of components) { |
| 23 | result.set(name, Object.fromEntries(comp.properties)); |
| 24 | } |
| 25 | return result; |
| 26 | } |
| 27 | |
| 28 | const BASE = `--- |
| 29 | name: Base |
no outgoing calls
no test coverage detected
searching dependent graphs…