Skip to content

Commit

Permalink
fix(typings): Correct typings for StageComponent
Browse files Browse the repository at this point in the history
Turned StageComponent into a class with static functions as TypeScript would turn the JSON const to `any`.
Fixes aurelia#46
  • Loading branch information
s-hoff committed Jan 3, 2017
1 parent 0885999 commit c5222b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/component-tester.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit c5222b3

Please sign in to comment.