(key, msg, code, isPendingDeprecation)
| 141 | } |
| 142 | |
| 143 | function deprecateProperty(key, msg, code, isPendingDeprecation) { |
| 144 | const emitDeprecationWarning = getDeprecationWarningEmitter( |
| 145 | code, msg, undefined, false, isPendingDeprecation, |
| 146 | ); |
| 147 | return (options) => { |
| 148 | if (key in options) { |
| 149 | emitDeprecationWarning(); |
| 150 | } |
| 151 | }; |
| 152 | } |
| 153 | |
| 154 | // Internal deprecator for pending --pending-deprecation. This can be invoked |
| 155 | // at snapshot building time as the warning permission is only queried at |
no test coverage detected
searching dependent graphs…