Top "Typescript1.8" questions

Use this tag for questions specific to new features in TypeScript 1.8. For general TypeScript questions, the correct tag is TypeScript.

How to set local web server in Visual Studio Code

I am new in VS code and working in typescript.Just I am trying to set local server path to …

typescript typescript1.8
Typescript 1.8 modules: import all files from folder

I am building a big library with Typescript with like 100 separate ts files. Previously I used export module XXX (renamed …

typescript typescript1.8
How can I pass the FormGroup of a parent component to its child component using the current Form API

I would like to pass the parent component's FormGroup to its child for the purpose of displaying an error-message using …

javascript angular angular2-forms typescript1.8
Inheritance and dependency injection

I have a set of angular2 components that should all get some service injected. My first thought was that it …

angular inheritance inject typescript1.8
TypeScript hasOwnProperty equivalent

In JavaScript, if I want to loop through a dictionary and set properties of another dictionary, I'd use something like …

javascript object typescript typescript1.8
Import module from root path in TypeScript

Let's suppose I've a project, and its main source directory is: C:\product\src Based on this directory, every import …

typescript typescript2.0 typescript1.8 typescript2.1 typescript2.2
How does one add a typing to typings.json for Typescript in Visual Studio 2015?

I have to ask because this is driving me crazy. I see the npm way of installing typings on Google, …

angular typescript visual-studio-2015 typescript-typings typescript1.8
Typescript: What is type URL?

I want to make sure that an interface member of type string is a formally valid URL. I could declare …

typescript1.8
Directory structure for TypeScript projects

What would be an idiomatic directory structure for a TypeScript project? I would like the following features in such a …

typescript directory-structure conventions typescript1.8
'this' is undefined inside the foreach loop

I am writing some typescript code and iterating an array. Inside the loop, I am trying to access 'this' object …

typescript typescript2.0 typescript1.8