Remove dependence on jquery.d.ts

jQuery declares a global var `$` which makes it potentially conflict with other declarations, for example angular-protractor

autobahn.d.ts doesn't need to depend on jquery.d.ts since the only thing it used, JqueryPromise, can be replaced with when.Promise
This commit is contained in:
Andrew Bradley
2016-01-11 23:16:59 -05:00
parent 627b6c158b
commit f505d870ff
+1 -2
View File
@@ -4,7 +4,6 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../when/when.d.ts" />
/// <reference path="../jquery/jquery.d.ts" />
declare module autobahn {
@@ -194,7 +193,7 @@ declare module autobahn {
type: string;
}
type DeferFactory = () => JQueryPromise<any>;
type DeferFactory = () => When.Promise<any>;
type OnChallengeHandler = (session: Session, method: string, extra: any) => When.Promise<string>;