| 28 | } |
| 29 | |
| 30 | export class Warning { |
| 31 | type: string; |
| 32 | description: string; |
| 33 | details: string; |
| 34 | constructor(type: string, description: string, details: string = "") { |
| 35 | this.type = type; |
| 36 | this.description = description; |
| 37 | this.details = details; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | export function formatBasic(error: Warning | Warning[], header = "⚠️System Warning:"): string { |
| 42 | if (Array.isArray(error)) { |
nothing calls this directly
no outgoing calls
no test coverage detected