mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #26337 from screendriver/is-touch-device
[is-touch-device] Add types
This commit is contained in:
Vendored
+1
-1
@@ -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 {
|
||||
|
||||
Vendored
+6
@@ -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;
|
||||
@@ -0,0 +1,3 @@
|
||||
import isTouchDevice from 'is-touch-device';
|
||||
|
||||
if (isTouchDevice()) {}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Vendored
+3
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user