mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-08 03:00:02 +00:00
Merge pull request #33713 from satyarohith/viewport-list
Add type definitions for viewport-list
This commit is contained in:
15
types/viewport-list/index.d.ts
vendored
Normal file
15
types/viewport-list/index.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Type definitions for viewport-list 5.1
|
||||
// Project: https://github.com/kevva/viewport-list#readme
|
||||
// Definitions by: Satya Rohith <https://github.com/satyarohith>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export = viewportList;
|
||||
|
||||
/**
|
||||
* Returns a list of devices and their veiwports
|
||||
*
|
||||
* @param items - An array of device names to fetch
|
||||
* @returns - An array of viewports
|
||||
*/
|
||||
declare function viewportList(items?: string[]): object[];
|
||||
23
types/viewport-list/tsconfig.json
Normal file
23
types/viewport-list/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",
|
||||
"viewport-list-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/viewport-list/tslint.json
Normal file
1
types/viewport-list/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
3
types/viewport-list/viewport-list-tests.ts
Normal file
3
types/viewport-list/viewport-list-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import viewportList = require('viewport-list');
|
||||
|
||||
viewportList(); // $ExpectType object[]
|
||||
Reference in New Issue
Block a user