I tried using the latest jquery/jquery.d.ts file in this repo and had problems.
When I launched TSC this error is shown:
.../typings/browser/ambient/jquery/index.d.ts(3212,13): error TS2403: Subsequent variable declarations must have the same type. Variable '$' must be of type 'cssSelectorHelper', but here has type 'JQueryStatic'.
From Stack Overflow @werenskjold suggest to replace:
declare module "jquery" {
export = $;
}
declare var jQuery: JQueryStatic;
declare var $: JQueryStatic;
with
declare module "jquery" {
export = jQuery;
}
declare var jQuery: JQueryStatic;
@johnnyreilly
I think this is probably a problem with your setup. jquery being aliased as $ is expected
Seems to be a conflict with protractor definitions.
Most helpful comment
Seems to be a conflict with protractor definitions.