Merge pull request #6028 from AyaMorisawa/os-locale-1.4.0

Update os-locale 1.4.0
This commit is contained in:
Horiuchi_H
2015-09-28 13:12:04 +09:00
2 changed files with 9 additions and 3 deletions
+5 -1
View File
@@ -5,4 +5,8 @@ import osLocale, { sync } from 'os-locale';
osLocale((err: any, locale: string) => {
});
var locale: string = sync();
osLocale({spawn: false}, (err: any, locale: string) => {
});
var locale1: string = sync();
var locale2: string = sync({spawn: false});
+4 -2
View File
@@ -1,12 +1,14 @@
// Type definitions for os-locale 1.2.1
// Type definitions for os-locale 1.4.0
// 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(options: {spawn?: boolean}, cb: (err: any, locale: string) => void): void;
function osLocale(cb: (err: any, locale: string) => void): void;
function osLocaleSync(): string;
function osLocaleSync(options: {spawn?: boolean}): string;
export { osLocaleSync as sync };
export default osLocale;
}