Top "Typescript-typings" questions

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

How to configure custom global interfaces (.d.ts files) for TypeScript?

I'm currently working on a ReactJS project which uses Webpack2 and TypeScript. Everything works perfectly apart from one thing - …

typescript typescript-typings typescript2.0 typescript1.8
Error TS2322: Type 'Object[]' is not assignable to type '[Object]'

I have a code snippet like this: export class TagCloud { tags: [Tag]; locations: [Location]; constructor() { this.tags = new Array<…

typescript ecmascript-6 typescript-typings definitelytyped
How should I use @types with TypeScript 2

So far we are used to tsd or (The better version of it) typings But now that TypeScript 2 offers the …

typescript tsd typescript-typings
Typescript and JQuery compile error: Cannot find name '$'

I'm testing typescript with jquery, but when I compile the test.ts file, it always gives me an error indicating: …

jquery typescript typescript-typings
Typescript: How to add type check for history object in React?

I have the following piece of code, which receives a history object as prop: const ChildComponent = ({ history }) => ( <div …

reactjs typescript typescript-typings
Typescript 2.0. "types" field in tsconfig.json

I do not understand the meaning of types field in tsconfig.json. In documentation I have read such text: "types": { "…

typescript typescript-typings typescript2.0
How to import jQuery to Angular2 TypeScript projects?

I want to wrap some jQuery code in an Angular2 directive. I installed jQuery library for Typings into my project …

jquery angular typescript angular2-directives typescript-typings
TypeScript 2: custom typings for untyped npm module

After trying suggestions posted in other places, I find myself unable to get a typescript project running that uses an …

typescript npm typescript-typings
Import class in definition file (*d.ts)

I want to extend Express Session typings to allow use my custom data in session storage. I have an object …

typescript typescript-typings
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