Top "Typescript-typings" questions

Typings is the simple way to manage and install TypeScript definitions.

What's the difference between Map and Record

I don't quite get what the difference between Map and Record in Typescript is. The only comparison I found was …

typescript typescript-typings
How to get value as type Number on this.formgroup.value()?

The value I get on submitting a form group is { "name": "Sunil", "age": "23" } What I want is { "name": "Sunil", "age": 23 } …

angular typescript-typings formgroups
Installing angular 1.5 typings

Update 3/26/2017 I now use npm install @types/angular with TypeScript 2.0 and the experience so far has been much smoother than …

angularjs typescript typescript-typings angularjs-1.5
What is the TypeScript 2.0 / ES2015 way to import assert from Node.js?

I'm running TypeScript 2.0.3, configured to with "target": "es2015",. I started with /// <reference path="../../node_modules/@types/node/index.d.…

typescript typescript-typings
Allow implicit any only for definition files

I am using TypeScript with the "noImplicitAny": true option set in my tsconfig.json. I am using typings to manage …

typescript typescript-typings
ts-node ignores d.ts files while tsc successfully compiles the project

Having compiled my TypeScript project successfully, I intended to run it in VS Code's debug mode using ts-node. Problem is, …

typescript typescript-typings ts-node
Keyof inferring string | number when key is only a string

I define an AbstractModel like so: export interface AbstractModel { [key: string]: any } Then I declare the type Keys: export type …

typescript typescript-typings
error TS2318: Cannot find global type 'Object'

Very simple project, no tsconfig.json just using the command line: tsc --jsx react --target es6 --lib dom src/lib/…

typescript typescript-typings
Angular 1.x with TypeScript 2.x, @types, and SystemJS - Using global typings

I am trying to use Angular 1.x with the new TS2 and @types registry but running into problems. It looks …

angularjs typescript typescript-typings typescript2.0
How to resolve: "Definition for rule '@typescript-eslint/consistent-type-assertions' was not found"

My React app is not failing to compile due to the error: Definition for rule '@typescript-eslint/consistent-type-assertions' was not …

reactjs typescript npm create-react-app typescript-typings