()
| 21 | } |
| 22 | |
| 23 | public get warn() { |
| 24 | if (!this.debug) { |
| 25 | return (...any) => {}; |
| 26 | } |
| 27 | const boundLogFn: (...any) => void = console.warn.bind( |
| 28 | console, |
| 29 | this.getLogString() |
| 30 | ); |
| 31 | return boundLogFn; |
| 32 | } |
| 33 | |
| 34 | public get error() { |
| 35 | if (!this.debug) { |
nothing calls this directly
no test coverage detected