TypeScript Declaration

17 February 2016 13:09 #7488
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 #7494
Hi Daniel,

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