mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[requireindex] Add types for v1.2 (#35360)
This commit is contained in:
parent
b7f07cfbbd
commit
e7ef1fe681
11
types/requireindex/index.d.ts
vendored
Normal file
11
types/requireindex/index.d.ts
vendored
Normal file
@ -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;
|
||||
4
types/requireindex/requireindex-tests.ts
Normal file
4
types/requireindex/requireindex-tests.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import idx = require('requireindex');
|
||||
|
||||
const files = idx('.');
|
||||
const filesWithBaseName = idx('.', ['again', 'somemore']);
|
||||
23
types/requireindex/tsconfig.json
Normal file
23
types/requireindex/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",
|
||||
"requireindex-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/requireindex/tslint.json
Normal file
1
types/requireindex/tslint.json
Normal file
@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Loading…
Reference in New Issue
Block a user