* an optional or defaultable element where it's required, which without * exactOptionalPropertyTypes drops the undefined it allowed, as TS's `-?` * does
(element: BaseRoot)
| 288 | * does |
| 289 | */ |
| 290 | requiredOf(element: BaseRoot): BaseRoot { |
| 291 | return this.isLoose ? withoutUndefined(element) : element |
| 292 | } |
| 293 | |
| 294 | /** whether data has a value at `index`, a defaultable element's index, which its default leaves alone */ |
| 295 | holdsElement(data: array, index: number): boolean { |
no test coverage detected