mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-09-22 09:00:31 +00:00
Merge pull request #33713 from satyarohith/viewport-list
Add type definitions for viewport-list
This commit is contained in:
Vendored
+15
@@ -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[];
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -0,0 +1,3 @@
|
||||
import viewportList = require('viewport-list');
|
||||
|
||||
viewportList(); // $ExpectType object[]
|
||||
Reference in New Issue
Block a user