Skip to content

Commit

Permalink
Merge pull request #102 from msheakoski/patch-1
Browse files Browse the repository at this point in the history
Update types to reflect that null is a possible return value
  • Loading branch information
hgoebl committed Mar 18, 2020
2 parents bdf68bf + e39eb67 commit 0a9ae49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mobile-detect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ declare class MobileDetect {

constructor(userAgent: string, maxPhoneWidth?: number);

mobile(): string;
phone(): string;
tablet(): string;
mobile(): string|null;
phone(): string|null;
tablet(): string|null;

userAgent(): string;
userAgents(): string[];
Expand Down

0 comments on commit 0a9ae49

Please sign in to comment.