TypeScript Declaration

17 February 2016 13:09
Hello @ll,

Could you provide an instruction on how to construct a 'TypeScript Declaration' of the b4w.min.js ? It would be a big improvement for development.

Primarily on how to handle the sub-modules like
var m_scenes = require("scenes");

and to transform them into something like
import {Scenes} from 'b4w/Scenes';

Any advice would be appreciated,


Complex TypeScript Definitions made easy
@ Emotional3D
17 February 2016 14:15
Hi Daniel,

This article may be useful. It claims that ReSharper can covert CommonJS declarations to TypeScript.
The Founder | Twitter | Facebook | Linkedin
Please register or log in to leave a reply.