mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 18:50:14 +00:00
Merge pull request #33712 from satyarohith/get-res
Add type definitions for get-res
This commit is contained in:
3
types/get-res/get-res-tests.ts
Normal file
3
types/get-res/get-res-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import getRes = require('get-res');
|
||||
|
||||
getRes(); // $ExpectType Promise<object[]>
|
||||
14
types/get-res/index.d.ts
vendored
Normal file
14
types/get-res/index.d.ts
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
// Type definitions for get-res 3.0
|
||||
// Project: https://github.com/kevva/get-res#readme
|
||||
// Definitions by: Satya Rohith <https://github.com/satyarohith>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export = getRes;
|
||||
|
||||
/**
|
||||
* Get ten most popular screen resolutions
|
||||
*
|
||||
* @returns An array with the details of ten most popular screen resolutions
|
||||
*/
|
||||
declare function getRes(): Promise<object[]>;
|
||||
23
types/get-res/tsconfig.json
Normal file
23
types/get-res/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",
|
||||
"get-res-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/get-res/tslint.json
Normal file
1
types/get-res/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user