src/util/deprecate

Function deprecation module
Source:

(require("src/util/deprecate"))(deprecatedFunction, warning, options) → {*}

Function to deprecate usage of a given function. It follows the same method signature as io.js/node.js util.deprecate.
Parameters:
Name Type Description
deprecatedFunction function function to deprecate
warning string message to display
options object deprecation method options
Source:
See:
Returns:
deprecatedFunction return value
Type
*
Example
deprecate(() => myOldFoo(), 'myOldFoo is deprecated, use myNewFoo instead.');