https://pulumi.com logo
#general
Title
# general
g

gifted-lion-29985

11/02/2018, 3:48 PM
Hi, how do I add custom typings in a pulumi typescript project? I added in tsconfig and vscode is happy but not pulumi
w

white-balloon-205

11/02/2018, 3:53 PM
Can you share any more details on the error you are seeing and how you added to ts config?
g

gifted-lion-29985

11/02/2018, 3:56 PM
my tsconfig
Copy code
{
  "compilerOptions": {
    "outDir": "bin",
    "target": "es6",
    "lib": [
      "es6"
    ],
    "module": "commonjs",
    "moduleResolution": "node",
    "sourceMap": true,
    "experimentalDecorators": true,
    "pretty": true,
    "noFallthroughCasesInSwitch": true,
    "noImplicitAny": false,
    "noImplicitReturns": true,
    "forceConsistentCasingInFileNames": true,
    "strictNullChecks": false
  },
  "files": [
    "index.ts"
  ],
  "include": [
    "./types.d.ts"
  ]
}
i added an include.
coz the npm module i install doesnt have types, so i tried to declare a module in types.d.ts
vscode doesnt show me the red underline after that, but pulumi is saying it cant find the types and ask to declare the module in a typings file.
17 Views