| 115 | * only `undefined`: an optional key is passed nothing |
| 116 | */ |
| 117 | export interface FailureContext { |
| 118 | _e( |
| 119 | data: unknown, |
| 120 | code: ArkErrorCode, |
| 121 | expected?: string, |
| 122 | message?: string, |
| 123 | text?: SiteContext["text"] |
| 124 | ): boolean | undefined |
| 125 | _k( |
| 126 | apply: CompactApply, |
| 127 | data: unknown, |
| 128 | key: PropertyKey, |
| 129 | ...missing: MissingText |
| 130 | ): boolean | undefined |
| 131 | } |
| 132 | |
| 133 | /** |
| 134 | * where arktype's own compiled code reports failures: _at fails a site, whose |
no outgoing calls
no test coverage detected