Skip to content

Commit

Permalink
Merge pull request #680 from shian15810/patch-1
Browse files Browse the repository at this point in the history
feat(types): improve typings
  • Loading branch information
rumpl committed Nov 9, 2021
2 parents 1c6efe2 + a8833d6 commit 2272944
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion index.d.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ declare namespace depcheck {
interface Options {
ignoreBinPackage?: boolean;
skipMissing?: boolean;
ignoreDirs?: ReadonlyArray<string>;
ignoreMatches?: ReadonlyArray<string>;
ignoreDirs?: ReadonlyArray<string>;
ignorePath?: string;
ignorePatterns?: ReadonlyArray<string>;
package?: {
dependencies?: PackageDependencies;
devDependencies?: PackageDependencies;
Expand All @@ -36,6 +38,19 @@ declare namespace depcheck {
detectors?: ReadonlyArray<Detector>;
specials?: ReadonlyArray<Parser>;
}

interface Config {
ignoreBinPackage?: Options['ignoreBinPackage'];
skipMissing?: Options['skipMissing'];
json?: boolean;
ignores?: Options['ignoreMatches'];
ignoreDirs?: Options['ignoreDirs'];
ignorePath?: Options['ignorePath'];
ignorePatterns?: Options['ignorePatterns']
parsers?: { [match: string]: (keyof typeof parser) | ReadonlyArray<keyof typeof parser> };
detectors?: ReadonlyArray<keyof typeof detector>;
specials?: ReadonlyArray<keyof typeof special>;
}

interface Results {
dependencies: string[];
Expand Down

0 comments on commit 2272944

Please sign in to comment.