1

I install this types. This file looks like this.

But that types do not include some very helpfull types like ClientState. I want add to that types this enum:

 enum ClientState {
            DISCONNECTED,
            CONNECTING,
            CONNECTED,
            LOGGING_IN,
            LOGGED_IN,
        }

I wanna add this enum to namespace VoxImplant How can I do it? My tsconfig:

{
  "compilerOptions": {
    "baseUrl": ".",
    "outDir": "./build_ts",
    "allowJs": true,
    "target": "es5",
    "sourceMap": false,
    "noImplicitAny": true,
    "module": "es2015",
    "moduleResolution": "node",
    "jsx": "react",
    "allowSyntheticDefaultImports": true,
    "lib": [
      "dom",
      "es2016"
    ],
    "paths":{
      "*": [
        "*",
        "./types/*"
      ]
    },
    "typeRoots": [
      "./types",
      "./node_modules/@types"
    ]
  },
  "include": [
    "./app/**/*"
  ]
}
sevaTechnoPark
  • 401
  • 1
  • 4
  • 3

1 Answers1

-1

You can use d.ts from right SDK npm package. It contains right d.ts.

Igor Sheko
  • 56
  • 6
  • 1
    I tried it, but d.ts declare modules like web-voximplant/Logger and my webpack did not resolve this path, when I try import it – sevaTechnoPark Jul 08 '18 at 12:34