Skip to content

Commit e8b3b4c

Browse files
committed
Added JQueryMobilePath interface
See http://api.jquerymobile.com/category/methods/path/
1 parent dab875d commit e8b3b4c

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

jquerymobile/jquerymobile.d.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,30 @@ interface LoaderOptions {
298298
textonly?: boolean;
299299
}
300300

301+
interface JQueryMobilePath {
302+
get(url: string): string;
303+
getDocumentBase(asParsedObject?: boolean): any;
304+
getDocumentUrl(asParsedObject?: boolean): any;
305+
getLocation(): string;
306+
isAbsoluteUrl(url: string): boolean;
307+
isRelativeUrl(url: string): boolean;
308+
makeUrlAbsolute(relUrl: string, absUrl: string): string;
309+
parseLocation(): ParsedPath;
310+
parseUrl(url): ParsedPath;
311+
}
312+
313+
interface ParsedPath {
314+
hash: string;
315+
host: string;
316+
hostname: string;
317+
href: string;
318+
pathname: string;
319+
port: string;
320+
protocol: string;
321+
search: string;
322+
}
323+
324+
301325
interface JQueryMobile extends JQueryMobileOptions {
302326

303327
version: string;
@@ -321,7 +345,7 @@ interface JQueryMobile extends JQueryMobileOptions {
321345

322346
touchOverflow: any;
323347
showCategory: any;
324-
path: any;
348+
path: JQueryMobilePath;
325349

326350
dialog: any;
327351
popup: any;

0 commit comments

Comments
 (0)