Skip to content

Commit

Permalink
fix(types): fixed countryCode type which is number, not string
Browse files Browse the repository at this point in the history
fix #90
  • Loading branch information
grantila committed Jan 4, 2023
1 parent d24558f commit 017b301
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ interface ParsedPhoneNumberValid {
possible: boolean;
canBeInternationallyDialled: boolean;
type: PhoneNumberTypes; // a string union, see below
countryCode: string;
countryCode: number;
typeIsMobile: boolean;
typeIsFixedLine: boolean;
}
Expand Down
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export interface ParsedPhoneNumberFull
possible: boolean;
canBeInternationallyDialled: boolean;
type: PhoneNumberTypes;
countryCode: string;
countryCode: number;
typeIsMobile: boolean;
typeIsFixedLine: boolean;
}
Expand Down

0 comments on commit 017b301

Please sign in to comment.