Skip to content

Commit

Permalink
Expose navigator from jquery.client
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien LESÉNÉCHAL committed Mar 8, 2024
1 parent 1f8d993 commit d764135
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jquery/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ interface Client {
* Defaults to the global `navigator` object.
* @return {Object} The client object
*/
profile(nav?: { userAgent: string; platform: string }): ClientProfile;
profile(nav?: Navigator): ClientProfile;

/**
* Checks the current browser against a support map object.
Expand Down Expand Up @@ -115,6 +115,11 @@ interface Client {
test(map: any, profile?: ClientProfile, exactMatchOnly?: boolean): boolean;
}

export interface Navigator {
userAgent: string;
platform: string;
}

interface ClientProfile {
name:
| "android"
Expand Down

0 comments on commit d764135

Please sign in to comment.