Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
k1r0s committed Oct 31, 2019
1 parent 983d2ee commit 5241e34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ Use a [join point](/docs/api.md#available-join-points) to plug it to any method/
```javascript
import { afterMethod } from 'kaop-ts'

const double = afterMethod(meta => meta.result *= 2)

class DummyExample {

@afterMethod(meta => meta.result *= 2)
@double
static calculateSomething (num, num2) {
return num * num2
}
Expand Down

0 comments on commit 5241e34

Please sign in to comment.