Is it possible to include jquery.d.ts and use jQueryStatic type? I need something like
...
protected el : jQueryStatic;
...
No matter how I try I can not import jQueryStatic interface from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/jquery
Thanks a lot.
Update
/// <reference path="../../../../defs/jquery.d.ts" />
error TS2304: Cannot find name 'jQuery'.
/// <reference path="../../../../defs/jquery.d.ts" />
import {jQuery} from 'jquery';
error TS2305: Module '"jquery"' has no exported member 'jQuery'.
Update
Working solution was to add type JQuery not jQuery.
/// <reference path="../../../defs/jquery.d.ts" />
...
protected $el: JQuery;