Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 51 additions & 50 deletions dist/jquery.browser.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,64 +2,65 @@
* Browser detection result interface
*/
export interface BrowserDetection {
msie?: boolean;
webkit?: boolean;
mozilla?: boolean;
chrome?: boolean;
safari?: boolean;
opr?: boolean;
opera?: boolean;
msedge?: boolean;
edge?: boolean;
rv?: boolean;
iemobile?: boolean;
android?: boolean;
blackberry?: boolean;
cros?: boolean;
ipad?: boolean;
iphone?: boolean;
ipod?: boolean;
kindle?: boolean;
linux?: boolean;
mac?: boolean;
playbook?: boolean;
silk?: boolean;
win?: boolean;
"windows phone"?: boolean;
bb?: boolean;
mobile?: boolean;
desktop?: boolean;
name: string;
version: string;
versionNumber: number;
platform: string;
uaMatch: (ua?: string) => BrowserDetection;
// Browser flags
msie?: boolean;
webkit?: boolean;
mozilla?: boolean;
chrome?: boolean;
safari?: boolean;
opr?: boolean;
opera?: boolean;
msedge?: boolean;
edge?: boolean;
rv?: boolean;
iemobile?: boolean;

// Platform flags
android?: boolean;
blackberry?: boolean;
cros?: boolean;
ipad?: boolean;
iphone?: boolean;
ipod?: boolean;
kindle?: boolean;
linux?: boolean;
mac?: boolean;
playbook?: boolean;
silk?: boolean;
win?: boolean;
"windows phone"?: boolean;
bb?: boolean;

// Classification flags
mobile?: boolean;
desktop?: boolean;

// Metadata
name: string;
version: string;
versionNumber: number;
platform: string;

// Function to match arbitrary user agents
uaMatch: (ua?: string) => BrowserDetection;
}

/**
* jQuery interface extension
*/
interface JQueryStatic {
browser: BrowserDetection;
browser: BrowserDetection;
}

/**
* Global window interface extension
*/
declare global {
interface Window {
jQBrowser: BrowserDetection;
jQuery?: JQueryStatic;
}
interface Window {
jQBrowser: BrowserDetection;
jQuery?: JQueryStatic;
}
}
/**
* Matches a user agent string and returns browser detection information
* @param ua - Optional user agent string. If not provided, uses navigator.userAgent
* @returns Browser detection object
*/
declare function uaMatch(ua?: string): BrowserDetection;
/**
* Factory function for module systems (AMD, CommonJS, Browser globals)
*/
declare function factory(jQuery?: JQueryStatic): BrowserDetection;
export { uaMatch, factory };
export default factory;
//# sourceMappingURL=jquery.browser.d.ts.map

export {};

1 change: 0 additions & 1 deletion dist/jquery.browser.d.ts.map

This file was deleted.

Loading