UNPKG

@v4fire/core

Version:
25 lines (15 loc) 420 B
# 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() {} } ```