mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 03:02:04 +08:00
Merge pull request #26125 from 0xProject/feature/lerna-get-packages
Add types for lerna-get-packages
This commit is contained in:
19
types/lerna-get-packages/index.d.ts
vendored
Normal file
19
types/lerna-get-packages/index.d.ts
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// Type definitions for lerna-get-packages 1.0
|
||||
// Project: https://github.com/azz/lerna-get-packages
|
||||
// Definitions by: Leonid Logvinov <https://github.com/LogvinovLeon>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
interface LernaPackage {
|
||||
location: string;
|
||||
package: {
|
||||
private?: boolean;
|
||||
version: string;
|
||||
name: string;
|
||||
main?: string;
|
||||
config?: {
|
||||
additionalTsTypings?: string[];
|
||||
};
|
||||
};
|
||||
}
|
||||
declare function lernaGetPackages(path: string): LernaPackage[];
|
||||
export = lernaGetPackages;
|
||||
4
types/lerna-get-packages/lerna-get-packages-tests.ts
Normal file
4
types/lerna-get-packages/lerna-get-packages-tests.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import lernaGetPackages = require('lerna-get-packages');
|
||||
|
||||
const packages = lernaGetPackages('.');
|
||||
packages.map(p => p.location);
|
||||
16
types/lerna-get-packages/tsconfig.json
Normal file
16
types/lerna-get-packages/tsconfig.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": ["index.d.ts", "lerna-get-packages-tests.ts"]
|
||||
}
|
||||
1
types/lerna-get-packages/tslint.json
Normal file
1
types/lerna-get-packages/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user