mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Add types for rtl-detect
This commit is contained in:
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
// Type definitions for rtl-detect 1.0
|
||||
// Project: https://github.com/shadiabuhilal/rtl-detect
|
||||
// Definitions by: imprevo <https://github.com/imprevo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function getLangDir(strLocale: string): 'ltr' | 'rtl';
|
||||
export function isRtlLang(strLocale: string): boolean | undefined;
|
||||
@@ -0,0 +1,4 @@
|
||||
import * as rtlDetect from 'rtl-detect';
|
||||
|
||||
rtlDetect.getLangDir('');
|
||||
rtlDetect.isRtlLang('');
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"rtl-detect-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user