title: Why does Typescript not compile this InversifyJS decorator?
body: <p>I'm copying the Inversify documentation almost exactly (version 1.2.2) and it fails to compile, giving me Typescript error TS1238. Why?</p>
  
  <pre><code>'use strict';
  import './tools/typescriptImports';
  import IServer = require('./iServer.ts');
  import IDatabase = require('../database/iDatabase');
  import express = require('express');
  import bodyParser = require('body-parser');
  import config = require('../config');
  import types = require('../tools/types.ts');
  import _ = require('lodash');
  import async_ = require('async');
  import { Inject } from "inversify";
  
  @Inject("IDatabase") // &lt;- error TS1238: Unable to resolve signature of class decorator when called as an expression. Supplied parameters do not match any signature of call target.
  class Server implements IServer
  {
      db : IDatabase;
      expressApp : express.Express;
  
      constructor(db : IDatabase)
      {
          this.db = db;
          ...
      }
  }
  </code></pre>