mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
Merge pull request #26337 from screendriver/is-touch-device
[is-touch-device] Add types
This commit is contained in:
2
types/http-link-header/index.d.ts
vendored
2
types/http-link-header/index.d.ts
vendored
@@ -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
6
types/is-touch-device/index.d.ts
vendored
Normal 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;
|
||||
3
types/is-touch-device/is-touch-device-tests.ts
Normal file
3
types/is-touch-device/is-touch-device-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import isTouchDevice from 'is-touch-device';
|
||||
|
||||
if (isTouchDevice()) {}
|
||||
23
types/is-touch-device/tsconfig.json
Normal file
23
types/is-touch-device/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/is-touch-device/tslint.json
Normal file
1
types/is-touch-device/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
4
types/website-scraper/index.d.ts
vendored
4
types/website-scraper/index.d.ts
vendored
@@ -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