Merge pull request #26337 from screendriver/is-touch-device

[is-touch-device] Add types
This commit is contained in:
Nathan Shively-Sanders
2018-06-19 15:44:01 -07:00
committed by GitHub
6 changed files with 37 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
// Type definitions for http-link-header 0.6
// Project: https://github.com/jhermsmeier/node-http-link-header
// Definitions by: Christian Rackerseder <https://www.echooff.de/>
// Definitions by: Christian Rackerseder <https://github.com/screendriver>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface Reference {

6
types/is-touch-device/index.d.ts vendored Normal file
View File

@@ -0,0 +1,6 @@
// Type definitions for is-touch-device 1.0
// Project: https://github.com/airbnb/is-touch-device
// Definitions by: Christian Rackerseder <https://github.com/screendriver>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export default function isTouchDevice(): boolean;

View File

@@ -0,0 +1,3 @@
import isTouchDevice from 'is-touch-device';
if (isTouchDevice()) {}

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-touch-device-tests.ts"
]
}

View File

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

View File

@@ -1,9 +1,11 @@
// Type definitions for website-scraper v1.2.x
// Project: https://github.com/s0ph1e/node-website-scraper
// Definitions by: Christian Rackerseder <https://www.echooff.de>
// Definitions by: Christian Rackerseder <https://github.com/screendriver>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="request" />
import * as request from 'request';
declare namespace websiteScraper {