UNPKG

@v4fire/core

Version:
26 lines (17 loc) 403 B
# core/functools/deprecation This module provides a bunch of functions and decorators to mark deprecated functions with the special flag. ```js import { deprecate, deprecated } from 'core/functools/deprecation'; const foo = deprecate({ name: 'foo', renamedTo: 'bar' }, bar); function bar() { } class Baz { @deprecated({alternative: 'newMethod'}) oldMethod() { } newMethod() {} } ```