Typings for intl-locales-supported

This commit is contained in:
Edward Sammut Alessi
2018-05-16 11:09:29 +02:00
parent e22846ad77
commit 4e412e57ed
4 changed files with 34 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
// Type definitions for intl-locales-supported 1.0
// Project: https://github.com/yahoo/intl-locales-supported
// Definitions by: My Self <https://github.com/me>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export default function areIntlLocalesSupported(locales: string | string[]): void;
@@ -0,0 +1,4 @@
import areIntlLocalesSupported from "intl-locales-supported";
areIntlLocalesSupported("en-GB");
areIntlLocalesSupported([ "en-GB", "en-US" ]);
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"intl-locales-supported-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }