(prop: Prop.Node)
| 491 | // what a missing key fails where props reports it: required's alone, as |
| 492 | // described, or saying a message configured as a sentence |
| 493 | const missingOf = (prop: Prop.Node): IssueContext | undefined => { |
| 494 | const { m: missing } = issueSiteOf(prop.failSite) as { m?: IssueContext } |
| 495 | return ( |
| 496 | missing && |
| 497 | missing.code === "required" && |
| 498 | isInlineSite(missing) && |
| 499 | (isDescribed(missing) || missing.c) |
| 500 | ) ? |
| 501 | missing |
| 502 | : undefined |
| 503 | } |
| 504 | |
| 505 | const missesAsRequired = (prop: Prop.Node): boolean => |
| 506 | missingOf(prop) !== undefined |
no test coverage detected