'use strict';Object.defineProperty(exports,'__esModule',{value:true});exports.deprecationWarning=void0;var_utils=require('./utils');/** * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */constdeprecationMessage=(message,options)=>{constcomment=options.comment;constname=(options.title&&options.title.deprecation)||_utils.DEPRECATION;(0,_utils.logValidationWarning)(name,message,comment);};constdeprecationWarning=(config,option,deprecatedOptions,options)=>{if(optionindeprecatedOptions){deprecationMessage(deprecatedOptions[option](config),options);returntrue;}returnfalse;};exports.deprecationWarning=deprecationWarning;