I added these custom types to my project. The file structure can be found here.
However, these types do not contain certain useful types such as ClientState. I want to include the following enum in those types:
enum ClientState {
DISCONNECTED,
CONNECTING,
CONNECTED,
LOGGING_IN,
LOGGED_IN,
}
I am looking to add this enum under namespace VoxImplant. How should I go about it? This is a snippet of 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/**/*"
]
}