mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-20 12:00:53 +08:00
Merge pull request #6028 from AyaMorisawa/os-locale-1.4.0
Update os-locale 1.4.0
This commit is contained in:
@@ -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});
|
||||
|
||||
Vendored
+4
-2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user