Typescript and Webstorm --> Typing problem in default Hello App



I’m using Webstorm 10 on OSx.
I just started with Meteor and Typescript. I created a default meteor project (hello app) via commandline.
I wanted to see how the typing worked with meteor and changed the hello.js to hello.ts.

After installing the typescript-libs and the typescript-compiler via commandline and using this reference path:
´/// <reference path=".meteor/local/build/programs/server/assets/packages/meteortypescript_typescript-libs/definitions/all-definitions.d.ts" />
It recognized the meteor objects and functions.

What it did not recognize is the template name defined in the hello.html (i assume).
When compiling the app this error is shown:

While building the application:
error TS2339: Property 'hello' does not exist on type 'TemplateStatic'.

This is the code for the hello.html:


<h1>Welcome to Meteor!</h1>

{{> hello}}

<template name="hello">
<button>Click Me</button>
<p>You've pressed the button {{counter}} times.</p>

And this is the code in the hello.ts:

/// <reference path=".meteor/local/build/programs/server/assets/packages/meteortypescript_typescript-libs/definitions/all-definitions.d.ts" />

if (Meteor.isClient) {
// counter starts at 0
Session.setDefault('counter', 0);

counter: function () {
  return Session.get('counter');

'click button': function () {
  // increment the counter when button is clicked
  Session.set('counter', Session.get('counter') + 1);

if (Meteor.isServer) {
 Meteor.startup(function () {
// code to run on server at startup

So is there any configuration I missed?


You should write Template['hello'].helpers({