(value: JsValue, _unused = null, indent: number | string = 0)
| 50 | } |
| 51 | |
| 52 | public static stringify(value: JsValue, _unused = null, indent: number | string = 0): string { |
| 53 | let _indent: string | null = null; |
| 54 | if (typeof indent === 'number') { |
| 55 | if (indent > 0) { |
| 56 | _indent = ' '.repeat(indent); |
| 57 | } |
| 58 | } else if (indent.length > 0) { |
| 59 | _indent = indent; |
| 60 | } |
| 61 | |
| 62 | const aisValue = jsToVal(value); |
| 63 | |
| 64 | return this.stringifyWalk(aisValue, _indent); |
| 65 | } |
| 66 | } |
no test coverage detected