Top "Typescript-typings" questions

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

A namespace-style import cannot be called or constructed, and will cause a failure at runtime

Strange stuff happening here, with TypeScript 2.7.2, in VSCode version 1.21 with @types/express and the code that follows, in some cases …

typescript express typescript-typings
Typescript Error Cannot find name 'google' in ionic2 when using googlemaps javascript API

I am following Joshua Morony's Getting Started with Google Maps in Ionic 2 video tutorial. I want to use google maps …

google-maps angular typescript ionic2 typescript-typings
Write a declaration file for a default export module

I have a npm module called RiveScript that usually (in Javascript) gets instantiated that way: var RiveScript = require('rivescript'); var …

typescript typescript-typings
Having error "Module 'name' resolves to an untyped module at..." when writing custom TypeScript definition file

I can't find TypeScript definition @type/{name} for one of my installed NodeJS packages, so I attempt to write a …

node.js typescript typescript-typings typescript2.1
Typescript: how to import a class from a javascript file?

I would like to : Import a js file that defines a class: ./myClass/index.js Declare the public methods of …

javascript typescript typescript-typings typescript2.0
Usage of the TypeScript compiler argument 'skipLibCheck'

I've been researching around for a further explanation into the skipLibCheck TypeScript compiler argument to determine the safety of having …

typescript typescript-typings typescript2.0
Where should I place custom .d.ts files?

I'm trying to provide typings for the package that does not have them: error TS7016: Could not find a declaration …

typescript typescript-typings
How to configure tsconfig.json for typings not in @types?

I'm using a tsconfig.json file to specify which typings I want to use in my app. { "compilerOptions": { "types" : ["node", "…

typescript typescript-typings
Types from both keys and values of object in Typescript

I have two sets of string values that I want to map from one to the other as a constant …

typescript typescript-typings
error TS2602: JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist

Even though I've installed & referenced the Typings library 'react' like this /// <reference path="../../../typings/browser.d.ts" /> …

reactjs typescript typescript-typings