I am able to generate the index.d.ts file in my /src/Main/ directory, and it looks ok. Trying to utilize it from my ts files though, it doesn't seem to be picking up on the type definitions in VS Code.
Tried adding a /// <reference path=".."/> in my ts file pointing to the d.ts file, but that doesn't seem to pick it up either.
Tried adding "typeRoots": ["/src/Main/"] in tsconfig. Everything still seems to type to 'any' in my ports script though.
Guessing there is something simple I am missing. Still fairly new with TypeScript.
Does this work with VS Code and Parcel?
Do my ts files need to be in some specific location relative to the d.ts file generated?
Can I adjust where the d.ts file gets created?
Any other suggestions?
My scripts ts code is currently in /public/scripts/*.ts rather than /src/..
But I tried copying one over to /src/Main/ along with the definition file, and still had the same result.
I am able to generate the index.d.ts file in my /src/Main/ directory, and it looks ok. Trying to utilize it from my ts files though, it doesn't seem to be picking up on the type definitions in VS Code.
Tried adding a
/// <reference path=".."/>
in my ts file pointing to the d.ts file, but that doesn't seem to pick it up either.Tried adding
"typeRoots": ["/src/Main/"]
in tsconfig. Everything still seems to type to 'any' in my ports script though.Guessing there is something simple I am missing. Still fairly new with TypeScript. Does this work with VS Code and Parcel? Do my ts files need to be in some specific location relative to the d.ts file generated? Can I adjust where the d.ts file gets created? Any other suggestions?
Much appreciated! Would love to get this working.