(latex: string)
| 257 | |
| 258 | export function expressionError(latex: string): string | string[] { |
| 259 | errors = []; |
| 260 | engine.parse(latex); |
| 261 | return errors.length === 1 ? errors[0] : errors; |
| 262 | } |
| 263 | |
| 264 | function validJSONNumber(num: string | number) { |
| 265 | if (typeof num === 'number') return num; |
| 266 | const val = Number(num); |
no test coverage detected