Top "Typescript" questions

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.

Return an empty Observable

The function more() is supposed to return an Observable from a get request export class Collection{ public more = (): Observable<…

javascript typescript rxjs observable
The difference between "require(x)" and "import x"

I've just started working on a small node project that will interface with a MongoDB. However, I cannot seem to …

node.js typescript import require
Dynamically add event listener

I am just starting to mess around with Angular 2 and I wonder if anyone can tell me the best way …

angular typescript addeventlistener
TypeScript hashmap/dictionary interface

I'm new to using TypeScript and I'm trying to implement a hashmap/dictionary interface. So far I have export interface …

typescript
How to use paths in tsconfig.json?

I was reading about path-mapping in tsconfig.json and I wanted to use it to avoid using the following ugly …

typescript node-modules tsconfig
Angular 2 Date Input not binding to date value

trying to get a form set up but for some reason, the Date input in my html is not binding …

html angular typescript angular2-forms
TypeScript TS7015: Element implicitly has an 'any' type because index expression is not of type 'number'

Im getting this compilation error in my Angular 2 app: TS7015: Element implicitly has an 'any' type because index expression is …

javascript angular typescript
Angular CLI - Please add a @NgModule annotation when using latest

note: I'm new to Angular, so please excuse any new comer stupidity here. Details I've installed the latest version of …

angular typescript angular-cli angularjs-ng-model
How to reject in async/await syntax?

How can I reject a promise that returned by an async/await function? e.g. Originally: foo(id: string): Promise&…

javascript asynchronous typescript es6-promise ecmascript-2017
How to import js-modules into TypeScript file?

I have a Protractor project which contains such a file: var FriendCard = function (card) { var webElement = card; var menuButton; var …

javascript typescript protractor webstorm