MCPcopy Create free account
hub / github.com/nodejs/node / createWarningDeprecation

Function createWarningDeprecation

test/fixtures/snapshot/typescript.js:3221–3229  ·  view source on GitHub ↗
(name, errorAfter, since, message)

Source from the content-addressed store, hash-verified

3219 };
3220 }
3221 function createWarningDeprecation(name, errorAfter, since, message) {
3222 var hasWrittenDeprecation = false;
3223 return function () {
3224 if (!hasWrittenDeprecation) {
3225 log.warn(formatDeprecationMessage(name, /*error*/ false, errorAfter, since, message));
3226 hasWrittenDeprecation = true;
3227 }
3228 };
3229 }
3230 function createDeprecation(name, options) {
3231 var _a, _b;
3232 if (options === void 0) { options = {}; }

Callers 1

createDeprecationFunction · 0.85

Calls 2

formatDeprecationMessageFunction · 0.85
warnMethod · 0.80

Tested by

no test coverage detected