@v4fire/core
Version:
V4Fire core library
25 lines (15 loc) • 420 B
Markdown
# core/functools/warning
This module provides a bunch of functions and decorators to mark functions with different warnings.
```js
import { warn, warned } from 'core/functools/warning';
const foo = warn({context: 'unimplemented', name: 'foo', alternative: 'bar'}, () => {
});
function bar() {
}
class Baz {
@warned({context: 'deprecated', alternative: 'newMethod'})
oldMethod() {
}
newMethod() {}
}
```