javascript - exporting TypeScript modules for browserify -


I have recently changed a canvas library, in which I wrote in the type scripts. I have broken the code into classes and they are all connected to a cnvs module, but I'm having trouble compiling these files in one file

Ideal I would like to run my files through the browser, but at the moment I want to do it.

A file

  module CNVS {export class shape {// here stuff}}   

and then another

  ///   

Basically I use the import shape = need ('./shape') I was trying to export the CNVS module in my CNVT file (with some variants, like adding extensions and not leading). '/')] / P>

In my CNVT file, So when it is compiled, I have a file in the code base, connecting to the window or connecting More files that can be compiled with the browser in a file.

The full code is

thanks

check out < Strong> Type :

Please note that you should go to Node.js.

Comments

Popular posts from this blog

python - how we can use ajax() in views.py in django? -

matlab - Using loops to get multiple values into a cell -

python - Sequence Pattern recognition with Pybrain -