Skip to content

Commit

Permalink
Merge branch 'master' of github.com:meikidd/iso-639-1
Browse files Browse the repository at this point in the history
  • Loading branch information
meikidd committed Dec 8, 2017
2 parents 5e75514 + 56a062c commit b2a1366
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
declare module "iso-639-1" {
interface ISO6391 {
getName: (code: string) => string;
getAllNames: () => Array<string>;
getNativeName: (code: string) => string;
getAllNativeNames: () => Array<string>;
getCode: (name: string) => string;
getAllCodes: () => Array<string>;
validate: (code: string) => boolean;
getLanguages: (codes: Array<string>) => Array<{
code: string;
name: string;
nativeName: string;
}>;
}

let localeCode: ISO6391;

export = localeCode;
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "2.0.1",
"description": "ISO-639-1 codes",
"main": "build/index.js",
"typings": "index.d.ts",
"scripts": {
"build": "webpack",
"test": "mocha"
Expand Down

0 comments on commit b2a1366

Please sign in to comment.