(config: Config = {})
| 54 | } |
| 55 | |
| 56 | resolve(config: Config = {}): Node { |
| 57 | return Object.assign(new Node(), this, { |
| 58 | children: this.children.map((child) => child.resolve(config)), |
| 59 | attributes: resolve(this.attributes, config), |
| 60 | slots: Object.fromEntries( |
| 61 | Object.entries(this.slots).map(([name, slot]) => [ |
| 62 | name, |
| 63 | slot.resolve(config), |
| 64 | ]) |
| 65 | ), |
| 66 | }); |
| 67 | } |
| 68 | |
| 69 | findSchema(config: Config = {}): Schema | undefined { |
| 70 | return transformer.findSchema(this, config); |