I'm fairly new to TypeScript, and right now I have .ts files in several places throughought my project structure:  app/  |-scripts/     |-app.ts     |     |-classes/     |  |-classA.ts     |  |-classB.ts     |       |-controllers/     |  |-contro...
In the image below on the left in the folders you can see my /src Typescript (blue) compiled into my /dist (purple) Javascript using tsc.    You can see in the source file on the left that references a .ts module file that it isn't compiled into...
I am working on a project that contains multiple libraries (Jquery, jq-ui, fileupload plugins and some other 3rd party plugins) i am converting my project to typescript but in order to work with those libraries I need a .d.ts file to include in my pr...
How to run a npm script command from inside a gulp task?  package.json  "scripts":  {     "tsc": "tsc -w" }   gulpfile.js  gulp.task('compile:app', function(){   return gulp.src('src/**/*.ts')     .pipe(/*npm r...
From within a node app I would like to do:  var typeScript = require('typescript');   typeScript.compile('...')   I'm looking to implement the compiler into a build system but without access to a public API (typescript.compile, et...
I am struggle with create proper unit tests for the angularjs (v1.4.9) application which contains both javascript files (with jasmine tests) and typescript files (with no tests at all, now I am trying to use Mocha, but it can be any framework).   Hen...
I have the following example:  class Uncle {   constructor(public name : string) { }    talk() {     return "Hello my name is " + name;   } }  let p : Uncle = new Uncle("Jo"); console.log(p.talk());   For certain variable names, types...
I'm trying to get Babel to produce sourcemaps when run from the command line. The Babel docs around sourcemaps seem to be targeted more toward the gulp workflow and I'm not sure how that translates to the command line.  I'm compiling my t...
Tsconfig:  { "compilerOptions": { "target": "es5", "module": "commonjs", "emitDecoratorMetadata": true, "experimentalDecorators": true, "sourceMap": true, "noEmitHelpers": true,...
Can anyone point me in the right direction as to why I can't hit any breakpoints in any of my TS files please? The application is a Node.JS app and is transpiled with TSC. Below is an example of the entry app.ts file:  ./src/app.ts  import 'r...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.