Search the Community

Showing results for tags 'definition'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 1 result

  1. Hi, I'm trying to use rStats.js in TypeScript/Visual Studio Code but of course with no .d.ts file it's throwing errors the issue is this is a constructor this.rS = new rStats({ ... })but this is essentially a method this.rS('FPS').frame();I was going to use a basic empy definition but I can't use rStats for both the module name and the class constructor.. not really sure how to implement it thanks for any help. J (I can add this function rStats(obj:any):void {} , so it compiles at least.. and then make sure I embed rStats.js after game.js in my html file but that's a bit of a hack)