From c5222b3818a4fa17bbc4c35b1f1c36db0c0ab998 Mon Sep 17 00:00:00 2001 From: s-hoff Date: Tue, 3 Jan 2017 23:58:58 +0100 Subject: [PATCH] fix(typings): Correct typings for StageComponent Turned StageComponent into a class with static functions as TypeScript would turn the JSON const to `any`. Fixes #46 --- src/component-tester.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/component-tester.js b/src/component-tester.js index 8a0a876..a1efe2d 100644 --- a/src/component-tester.js +++ b/src/component-tester.js @@ -1,11 +1,11 @@ import {View} from 'aurelia-templating'; import {Aurelia} from 'aurelia-framework'; -export const StageComponent = { - withResources(resources): ComponentTester { +export class StageComponent { + static withResources(resources: string | string[]): ComponentTester { return new ComponentTester().withResources(resources); } -}; +} export class ComponentTester { bind: (bindingContext: any) => void;