* Return a direct child by id * * Throws an error if the child is not found. * * @param id Identifier of direct child * @returns Child with the given id.
(id: string)
| 141 | * @returns Child with the given id. |
| 142 | */ |
| 143 | public findChild(id: string): IConstruct { |
| 144 | const ret = this.tryFindChild(id); |
| 145 | if (!ret) { |
| 146 | throw new Error(`No child with id: '${id}'`); |
| 147 | } |
| 148 | return ret; |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * Returns the child construct that has the id `Default` or `Resource`. |
no test coverage detected