typescript2.4 Questions

5

Solved

I have a file, which must be loaded asynchronously, so I made a function, which loads this file and returns the Promise: export function load() { // ... return import(filename); } What is the ...
Cassis asked 31/8, 2018 at 9:57

3

Solved

Say we have a function that accepts a variable number of arguments, I believe it's called variadic function. Something like this: function foo(){ let args = Array.from(arguments).map(v => wha...

2

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 are assigning a value to a type that doesn't ha...
Scrappy asked 15/9, 2017 at 10:31

9

Solved

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 the error messages: Severity Code Descriptio...
Blida asked 19/7, 2017 at 13:2

9

Solved

When I compile, I get the following compiler error in the RxJS declaration files: node_modules/rxjs/Subject.d.ts(16,22): error TS2415: Class 'Subject<T>' incorrectly extends base class 'Obse...
Lewin asked 28/6, 2017 at 18:38

1

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 button [checked]. Rather than showing the contr...
Declared asked 16/8, 2017 at 12:20

2

Solved

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 update. I work in an off line environment, so I...
Coal asked 17/9, 2017 at 12:20

1

Solved

I have added angular material2 package to my project. However, I get the following warning message in browser i have created a custom scss file and imported the packages still it throw's warning me...
Kearney asked 25/7, 2017 at 5:49

1

Solved

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-node. It seems like the error does not occur wh...
Edita asked 29/7, 2017 at 15:2
1

© 2022 - 2024 — McMap. All rights reserved.