Added JQueryMobilePath interface

See http://api.jquerymobile.com/category/methods/path/
This commit is contained in:
Dick van den Brink
2014-01-14 22:19:02 +01:00
parent dab875d9a7
commit e8b3b4c4ce
+25 -1
View File
@@ -298,6 +298,30 @@ interface LoaderOptions {
textonly?: boolean;
}
interface JQueryMobilePath {
get(url: string): string;
getDocumentBase(asParsedObject?: boolean): any;
getDocumentUrl(asParsedObject?: boolean): any;
getLocation(): string;
isAbsoluteUrl(url: string): boolean;
isRelativeUrl(url: string): boolean;
makeUrlAbsolute(relUrl: string, absUrl: string): string;
parseLocation(): ParsedPath;
parseUrl(url): ParsedPath;
}
interface ParsedPath {
hash: string;
host: string;
hostname: string;
href: string;
pathname: string;
port: string;
protocol: string;
search: string;
}
interface JQueryMobile extends JQueryMobileOptions {
version: string;
@@ -321,7 +345,7 @@ interface JQueryMobile extends JQueryMobileOptions {
touchOverflow: any;
showCategory: any;
path: any;
path: JQueryMobilePath;
dialog: any;
popup: any;