(name: string, config: BlockConfig)
| 30 | }; |
| 31 | |
| 32 | constructor(name: string, config: BlockConfig) { |
| 33 | this.name = name; |
| 34 | this.category = config.category ?? Block.UNCATEGORIZED; |
| 35 | this.component = config.component; |
| 36 | this.props = config.props as { |
| 37 | [key in Key]: PropertySpec<Props[key]>; |
| 38 | }; |
| 39 | |
| 40 | this.populateDefaults(); |
| 41 | } |
| 42 | |
| 43 | public getGroupedProps() { |
| 44 | const propsByGroup: Record<string, Record<string, PropertySpec<any>>> = {}; |
nothing calls this directly
no test coverage detected