My project use react with typescript. I need to use react-breadcrumbs to show Breadcrumb for react-router.  Now I add two @type package to My package.json   "dependencies": {    "@types/react-breadcrumbs": "^1.3.7",    "@t...
I have installed a .d.ts file (namely, type definitions for p2.js library) as external (non-global) typings module with the following command:  typings install p2=github:schteppe/p2.js/index.d.ts#9d56924   I then use it in my TypeScript code like thi...
I have an external JS library with a global parameter:  function Thing() {  ...  } ... var thing = new Thing();   There is a TypeScript definition file, so in thing.d.ts:  declare var thing: ThingStatic; export default thing;  export interface ThingS...
I want to insert duplicate values into array based on length provided like this:  var a = [{displayName: 'bar'}, {displayName:'google'}, {displayName:'mod'}];; var dataTypesLength= 4;   Output should be like:  var a = [{displa...
Is there a way to change the type of interface property defined in a *.d.ts in typescript?  for example: An interface in x.d.ts is defined as    interface A {   property: number; }   I want to change it in the typescript files that I write to   inter...
I have an external library thing.d.ts file with a global definition inside:  declare var thing: ThingStatic; export default thing;   I reference npm module in my TypeScript:  import thing from 'thing'; ... thing.functionOnThing();   When I tr...
I am using expressjs with the latest typescript definition file and typescript 2.3.4 from https://github.com/DefinitelyTyped/DefinitelyTyped. I defined a router and would like to use it from a subpath as is stated in the official 4.x documentation (a...
Problem  I am working on JavaScript project using VSCode. I am using the UMD design pattern and vscode intellisense cannot recognize the exports of a module from another file. I added all the declarations in a file called globals.d.ts. Unfortunately...
I am setting up a node.js project that uses a native add-on. The native add-on includes a large number of exported functions. I've setup a typings file (.d.ts) that includes all the function definitions and data etc. that are exported from the na...
Currently i'm trying to use d3-drag v4 types in my project. were using Ts 1.8.10 and not ready to move to the TS2 beta.  the d3-v4 typings library is located here: https://github.com/tomwanzek/d3-v4-definitelytyped  i tried to install the typings...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.