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

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -