From 34c4f774f710762a20dfbef33935270a2cc1cdbc Mon Sep 17 00:00:00 2001 From: Martin Karkowski Date: Mon, 24 Aug 2020 13:34:31 +0200 Subject: [PATCH] Remove old file. --- test/testDecorators.ts | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 test/testDecorators.ts diff --git a/test/testDecorators.ts b/test/testDecorators.ts deleted file mode 100644 index 9f1b44d..0000000 --- a/test/testDecorators.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { exportsElementsToDispatcher, exportMethodToDispatcher, exportPropertyToDispatcher } from "../lib/dispatcher/nopeDispatcherDecorators"; - -@exportsElementsToDispatcher({ - url: 'icemaker' -}) -export class Icemaker { - - toppings = []; - sugar = 0; - - @exportMethodToDispatcher() - addTopping(topping) { - this.toppings.push(topping); - } - - @exportMethodToDispatcher() - addSugar() { - this.sugar++; - } - - @exportPropertyToDispatcher() - name: string; - -} - -const instance = new Icemaker(); -instance.addTopping('caramel') -console.log(instance) \ No newline at end of file