mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add os-locale.d.ts
This commit is contained in:
@@ -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();
|
||||
Vendored
+12
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user