-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
@typesRelates to working with .d.ts files (declaration/definition files) from DefinitelyTypedRelates to working with .d.ts files (declaration/definition files) from DefinitelyTypedBugA bug in TypeScriptA bug in TypeScriptVisual StudioIntegration with Visual StudioIntegration with Visual Studio
Milestone
Description
TypeScript Version: 2.0.0-beta / "2.0.0.0" in Help -> About
Code
"devDependencies": {
"@types/jquery": "1.10.27",
"typescript": "2.0.0"
}
{
"compilerOptions": {
"types": ["jquery"]
}
}
var a: JQuery;
Running tsc
on the command line works as expected. When I remove for example the "jquery" entry from the types
array in tsconfig.json
I get the appropriate error for a
.
Expected behavior:
Opening the ts file in Visual Studio 2015 with 2.0.0-beta installed should show no errors.
Actual behavior:
VS complains about the type JQuery
not known. When I manually add a
/// <reference types="jquery" />
VS stops complaining.
Metadata
Metadata
Assignees
Labels
@typesRelates to working with .d.ts files (declaration/definition files) from DefinitelyTypedRelates to working with .d.ts files (declaration/definition files) from DefinitelyTypedBugA bug in TypeScriptA bug in TypeScriptVisual StudioIntegration with Visual StudioIntegration with Visual Studio