(fn: () => T)
| 97 | } |
| 98 | |
| 99 | export function ignoreDeprecationWarnings<T>(fn: () => T): T { |
| 100 | const before = _ignoreDeprecationWarnings |
| 101 | _ignoreDeprecationWarnings = true |
| 102 | const ret = fn() |
| 103 | _ignoreDeprecationWarnings = before |
| 104 | return ret |
| 105 | } |