I have lost the support for JavaScript files inside Visual Studio 2015 after updating the TypeScript tools from version 1.5.3 to 1.5.4.  By support for JavaScript I mean intellisense, syntax coloring and the JavaScript options inside Options menu -&g...
The Kangax compatibility table for ES6 at http://kangax.github.io/compat-table/es6/ shows results for "TypeScript + core-js".  I need core-js in order to use ES6 methods like String#startsWith.  I haven't been able to figure out how to te...
Using TypeScript with SystemJS, how can I import a JSON file using plugin-json?  If I write System.import('myjson.json!json').then(...) then it imports it asynchronously and not as a part of System.register([...]).  So, how can I import a JSO...
I have declared a rootscope custom property in a ts file  like below  module MyApp.Entity{      export interface IRootScope extends ng.IRootScopeService {         userData: any;         clientData: any;     } }    In one of my service file I have ass...
I'm trying to get a very basic, functional structure set up for Angular 2.  It will have only the most basic API elements so that as the framework advances, I can advance my structure.  Currently, I'm at my wit's end as to how to perform...
I'm trying to run tests using karma/jasmine/systemjs with Angular 2 and typescript. I previously had it working without systemjs/typescript using babel.  I also got it working transpiling typescript to es6 and using the same karma setup without u...
I'm using Sublime Typescript Plugin to transpile Typescript files.  Project folder    I've done all the setup for a sample project with help of tsconfig.json(using Typescript 1.5V). Below is my tsconfig.json  {     "compilerOptions":...
I have store with a collection which I want to be read only. I wish to do something like but I don't know if Mobx provides a way to create a reactive function.  class Store{   private _col:Mobx.Map;   ...    @observable public has(id){     return...
I am trying to modularize an Angular 2 application, having the services in a different file:  app.ts  /// <reference path="typings/angular2/angular2.d.ts" /> /// <reference path="./services.ts" />  import {Component, View,...
I'm creating jQuery plugins using external modules in TypeScript. It seems as that if I add the interfaces directly to the modules I cannot add the new methods to the JQuery ambient interface declaration.  E.g. in jquery.d.ts  declare interface J...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.