I have a file, which must be loaded asynchronously, so I made a function, which loads this file and returns the Promise: What is the return type of ...
I have a file, which must be loaded asynchronously, so I made a function, which loads this file and returns the Promise: What is the return type of ...
I created a custom $http service because I wanted something more similar to the AngularJS one. I recently discovered that you can override the type ...
The array of objects displayed in the p-table(TurboTable) is not displayed in original order when row grouping. The data sent to the table are note r ...
TypeScript version 2.4.2, compiled with --target ES6 The line of code: causes TypeScript to throw error TS2322: Type 'number[]' is not assign ...
I'm trying to migrate from TypeScript 2.3.2 to 2.4.2. This code used to work in 2.3: but now, it raises the following error on compilation: Er ...
I'm having a problem with import and module in typescript 2.4.1. I have two files: testAdd.ts: testCallAdd.ts: This code as it is now compiles ...
I'm putting together a AngularJS+Typescript+VisualStudio project. I want to have a configuration file with constants in it that control different sett ...
I ran into a little problem trying to access subcomponents in vue 2.5.2 while using Typescript 2.4.2. I am trying to access a Keen UI UiSelect compon ...
This code works fine with typescript 2.3, but fail with typescript 2.4. Can you explain why? testFindTypeGuard.ts: my.d.ts: error message: ...
I am trying to migrate my angular 2 app to angular 4 and ngrx 4. I am tackling a weird typescript compilation problem that I didn't have before this ...
With Typescript version 2.4 weak type detection was added. Now I agree this is a great feature and will help catch a whole bunch of bugs for when you ...
I have class called Candles and a class called Candle. Candles has a property list that contains an array of Candle. I want list to encapsulate wit ...
I want pass two generic condition for pass array type field name but not accepted second condition. This my method declaration and this no problem. ...
I have a Angular 4 Typescript app that have multiple types of objects defined by classes that have different type properties, as below: These objec ...
I've run into an issue with combineReducers not being strict enough and I'm not sure how to get around it: I would expect reducerMap to throw an er ...
I've been trying to upgrade a project from TypeScript 2.3 to 2.4 but it's proving rather frustrating and confusing. I'm getting some errors related to ...
I am new for angular 4. I need to download a HTML webpage in pdf format and the html webpage contains angular controls like input [(ngModel)], radio b ...
While using the new TypeScript feature, so called ES Dynamic Imports, I am not able to run the code of my isomorphic app on the server side using ts-n ...
In the TS docs over at: https://www.typescriptlang.org/docs/handbook/functions.html, "Function Types" are introduced. The code for such an example is: ...
I have recently upgraded the version of TypeScript from 2.3.4 to 2.4.0 hoping to use the string enums. To my dismay, however, I have been greeted with ...