@mizchi/debug-decorator

0.1.0 • Public • Published

debug decorator

Install

npm install @mizchi/debug-decorator --save

Usage

class X {
  @debug
  get name() {
    return 'xxx';
  }

  @debug
  square(n: number){
    return n * n;
  }
}
const x = new X;
x.name;
const r = x.square(2);

output

debug: get name - xxx
debug: call square
        [args] 2
        [return] 4        

LICENSE

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @mizchi/debug-decorator

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • mizchi