If you have a config like this:
{
"compilerOptions": {
...
"typeRoots" : ["./typings"]
}
And a directory structure like this:
-- tsconfig.json
-- typings
-- index.d.ts
ts-node will not be able to find the module defs in index.d.ts
ts-node will work if you have something like:
-- tsconfig.json
-- typings
-- <library_name>
-- index.d.ts
Typescript will work with either setup.
If you have a config like this:
{ "compilerOptions": { ... "typeRoots" : ["./typings"] }And a directory structure like this:
ts-node will not be able to find the module defs in index.d.ts
ts-node will work if you have something like:
Typescript will work with either setup.