Here is my tfconfig.json file:
{
"compilerOptions": {
"baseUrl": "./src",
"noEmitOnError": true,
"noImplicitAny": true,
"outDir": "./scripts/bowtie",
"outFile": "./scripts/bowtie/bowtie.js",
"sourceMap": false,
"declaration": false,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"types": [
"jquery",
"d3"
]
},
"exclude": [
"obj",
"node_modules",
"WebAPI/node_modules",
"scripts/bowtie",
"../node_modules/"
],
"compileOnSave": true
}
Doesn't have typeSources at all.
It's in the WebAPI folder. Is this the right place for it?
If I were to let typeSources be undefined, would this be the right way to do it:
{
"compilerOptions": {
"baseUrl": "./src",
"noEmitOnError": true,
"noImplicitAny": true,
"outDir": "./scripts/bowtie",
"outFile": "./scripts/bowtie/bowtie.js",
"sourceMap": false,
"declaration": false,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"types": [
"jquery",
"d3"
]
},
"typeSources": "undefined",
"exclude": [
"obj",
"node_modules",
"WebAPI/node_modules",
"scripts/bowtie",
"../node_modules/"
],
"compileOnSave": true
}
If I were to add "@types/jquery" to the file, would this be the right way to do it?
{
"compilerOptions": {
"baseUrl": "./src",
"noEmitOnError": true,
"noImplicitAny": true,
"outDir": "./scripts/bowtie",
"outFile": "./scripts/bowtie/bowtie.js",
"sourceMap": false,
"declaration": false,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"types": [
"jquery",
"d3"
]
},
"typeSources": ["node_modules/@types"],
"exclude": [
"obj",
"node_modules",
"WebAPI/node_modules",
"scripts/bowtie",
"../node_modules/"
],
"compileOnSave": true
}
"Just FYI, this forum is for the Node.js based forum software NodeBB, it's not really a forum for help with general Node.js or TypeScript issues. A better place for that is SlackOverflow."
Thanks for helping out even though this isn't the right forum for this kind of question. Ironically, stackoverflow is NOT a better place for this kind of question because no one ever replies even when I'm perfectly on topic.
Do you know any forums specific to node?