Top "Typescript-typings" questions

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

How to install jquery using typings

used: typings install jquery --global typings ERR! message Unable to find "jquery" ("npm") in the registry. Did you want to …

typescript typescript-typings
How to use React useRef hook with typescript?

Ia m creating a reference using the new useRef hook const anchorEl = React.useRef<HTMLDivElement>(null) And using …

reactjs typescript typescript-typings react-hooks
TypeScript in Visual Studio 2017: Automatic definition inclusion causes Duplicate Identifier errors

UPDATE: I've got a workaround that makes things work acceptably with no hacks. I leave my prior attempts described below …

typescript typescript-typings visual-studio-2017
How to fix "@types/node/index.d.ts is not a module"?

I have installed node type definitions using the following command npm install --save-dev @types/node After that, when I try …

node.js typescript webpack webpack-2 typescript-typings
TypeScript React Native Flatlist: How to give renderItem the correct type of it's item?

I'm building a React Native app with TypeScript. renderItem complains that the destructured item implicitly has an any type. I …

typescript object react-native typescript-typings react-native-flatlist
What is the type of an enum in Typescript?

Given a function that has an argument supposed to be an enum. The enum passed in can have different numbers …

typescript typescript-typings
typings vs @types NPM scope

In some cases typings is used for handling TypeScript definitions (e.g. angular/angular2-seed). In other cases scoped NPM @…

typescript npm typescript-typings
How do I use catchError() and still return a typed Observable with rxJs 6.0?

cdSo I'm trying to migrate some of my Angular 5 code to 6, and I understand most of the changes required for …

angular typescript typescript-typings rxjs6
Declare dynamically added class properties in TypeScript

I want to assign properties to the instance of a class without knowing the property names, values and types of …

class typescript properties typescript-typings tsc