( error: ArkError, slot: "expected" | "actual" | "message" )
| 950 | } |
| 951 | |
| 952 | export const suppliedText = ( |
| 953 | error: ArkError, |
| 954 | slot: "expected" | "actual" | "message" |
| 955 | ): string | undefined => inputOf(error)?.[slot] |
| 956 | |
| 957 | // records the locale an error was written in when it differs from its config's |
| 958 | // (e.g. a function locale or summaryIn), so lineOf(error) formats it identically |
no test coverage detected