Add os-locale.d.ts

This commit is contained in:
Aya Morisawa
2015-08-29 21:34:08 +09:00
parent 67605e10f6
commit 3131c7cf55
2 changed files with 20 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
/// <reference path="./os-locale.d.ts" />
import osLocale, { sync } from 'os-locale';
osLocale((err: any, locale: string) => {
});
var locale: string = sync();
+12
View File
@@ -0,0 +1,12 @@
// Type definitions for os-locale 1.2.1
// Project: https://github.com/sindresorhus/os-locale
// Definitions by: Aya Morisawa <https://github.com/AyaMorisawa>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "os-locale" {
function osLocale(cb: (err: any, locale: string) => void): void;
function osLocaleSync(): string;
export { osLocaleSync as sync };
export default osLocale;
}