From 5241e34543797d841764f52ffa6777a8398f86e2 Mon Sep 17 00:00:00 2001 From: Ciro Date: Thu, 31 Oct 2019 13:04:15 +0100 Subject: [PATCH] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cd4d1e1a..1a39a759 100644 --- a/README.md +++ b/README.md @@ -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 }