(log: any)
| 14 | * through mixin functions and will be stored as a constant. |
| 15 | */ |
| 16 | export function patchLogService(log: any) { |
| 17 | const _warnFn = log.warn; |
| 18 | |
| 19 | log.warn = function (message: string) { |
| 20 | if (message.includes('Unresolved TypeScript symbol') && mixinNameRegex.test(message)) { |
| 21 | return; |
| 22 | } |
| 23 | |
| 24 | _warnFn.apply(log, [message]); |
| 25 | }; |
| 26 | } |