(prop: Prop.Node)
| 718 | |
| 719 | // whether a key a default writes holds a value |
| 720 | const writeHolds = (prop: Prop.Node): string => |
| 721 | prop.is("optional") && prop.defaultsUndefined ? |
| 722 | `data${writeAccess(prop.key as string)} !== void 0` |
| 723 | : `${JSON.stringify(prop.key)} in data` |
| 724 | |
| 725 | // the keys data holds in arktype's order; a default written by a function holds |
| 726 | // its key's place until each transform has run |
no test coverage detected