typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
33 lines (27 loc) • 800 B
TypeScript
// Type definitions for jQuery.Address 1.5
// Project: https://github.com/asual/jquery-address
// Definitions by: Martin Duparc <@martinduparc>
// Definitions: https://github.com/borisyankov/DefinitelyTyped/
/// <reference path="../jquery/jquery.d.ts" />
interface JQueryAddressStatic {
();
change(callback: any): void;
value(url: any): void;
update(): void;
path(): string;
path(value: string): void;
internalChange(eventhandler: Function): void;
externalChange(eventhandler: Function): void;
parameter(name: string, value?: string): string;
value(): string;
history(value: boolean): void;
}
interface JQueryAddress {
(): JQuery;
}
interface JQueryStatic {
address: JQueryAddressStatic;
}
interface JQuery {
address: JQueryAddress;
}