Skip to content

Commit

Permalink
Merge pull request #74 from olalonde/patch-1
Browse files Browse the repository at this point in the history
Fix type for getCode (can also return empty string)
  • Loading branch information
meikidd authored Sep 11, 2023
2 parents 259ace6 + 13b0ed8 commit 94f08d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ declare module 'iso-639-1' {
getAllNames: () => Array<string>;
getNativeName: (code: string) => string;
getAllNativeNames: () => Array<string>;
getCode: (name: string) => LanguageCode;
getCode: (name: string) => LanguageCode | "";
getAllCodes: () => Array<LanguageCode>;
validate: (code: string) => boolean;
getLanguages: (codes: Array<string>) => Array<{
Expand Down

0 comments on commit 94f08d0

Please sign in to comment.