Merge pull request #26045 from 0xProject/feature/is-mobile

Add type definitions for is-mobile
This commit is contained in:
Daniel Rosenwasser
2018-05-26 22:30:05 -07:00
committed by GitHub
4 changed files with 35 additions and 0 deletions

8
types/is-mobile/index.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
// Type definitions for is-mobile 0.3
// Project: https://github.com/juliangruber/is-mobile
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function isMobile(): boolean;
export = isMobile;

View File

@@ -0,0 +1,3 @@
import isMobile = require('is-mobile');
isMobile();

View File

@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"strictFunctionTypes": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"is-mobile-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }