Typescript 2.0. Feld "types" in tsconfig.json
Ich verstehe die Bedeutung von @ nictypes
Feld intsconfig.json
. In der Dokumentation habe ich solchen Text gelesen:
"types": {
"description": "Type declaration files to be included in compilation. Requires TypeScript version 2.0 or later.",
"type": "array",
"items": {
"type": "string"
}
},
Soweit ich verstehe, wenn ich installiere@types/express
Ich sollte eine solche Zeichenfolge in @ hinzufügtsconfig.json
{
"compilerOptions": {
...
"types": ["lodash"]
}
}
aber alles funktioniert gut ohne. Und jetzt verstehe ich nicht, warum ich @ brauctypes
Fel