Error: (7, 64) TS2339: Property 'Controller' does not exist on type 'typeof RealtimeMultiplayerGame'.

import SortedLookupTable from "../lib/SortedLookupTable.d.ts"; namespace RealtimeMultiplayerGame.Controller { export class FieldController { constructor() { this.entities = new SortedLookupTable(); this.players = new SortedLookupTable(); } 

Error here:

  namespace RealtimeMultiplayerGame { export abstract class AbstractGame { constructor() { this.setupNetChannel(); this.setupCmdMap(); this.fieldController = new RealtimeMultiplayerGame.Controller.FieldController(); } 

A little poke realized that the problem is

  import SortedLookupTable from "../lib/SortedLookupTable.d.ts"; 

Inside here

 declare let SortedLookupTable:any; export default SortedLookupTable; 

Here something is wrong

    1 answer 1

    In general, did so, if that correct

     interface SortedLookupTableInterface{ } declare module "SortedLookupTableModule" { export = SortedLookupTable; } declare class SortedLookupTable implements SortedLookupTableInterface{ }