@v4fire/core
Version:
V4Fire core library
26 lines (17 loc) • 403 B
Markdown
# 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() {}
}
```