| 7 | type ParsedErrorTypeKeys = keyof typeof ParsedErrorType; |
| 8 | |
| 9 | export interface ParsedErrorData { |
| 10 | type: typeof ParsedErrorType[ParsedErrorTypeKeys]; |
| 11 | title: string; |
| 12 | message: string; |
| 13 | matchers?: Array<string | RegExp>; |
| 14 | } |
| 15 | |
| 16 | // TODO: Implement Error instances? |
| 17 | const insufficientFunds: ParsedErrorData = { |
nothing calls this directly
no outgoing calls
no test coverage detected