mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-15 06:20:23 +00:00
[requireindex] Add types for v1.2 (#35360)
This commit is contained in:
committed by
Nathan Shively-Sanders
parent
b7f07cfbbd
commit
e7ef1fe681
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
// Type definitions for requireindex 1.2
|
||||
// Project: https://github.com/stephenhandley/requireindex
|
||||
// Definitions by: Brad Zacher <https://github.com/bradzacher>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function requireindex(
|
||||
path: string,
|
||||
basenames?: ReadonlyArray<string>,
|
||||
): {[filename: string]: any};
|
||||
|
||||
export = requireindex;
|
||||
@@ -0,0 +1,4 @@
|
||||
import idx = require('requireindex');
|
||||
|
||||
const files = idx('.');
|
||||
const filesWithBaseName = idx('.', ['again', 'somemore']);
|
||||
@@ -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",
|
||||
"requireindex-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user