Files
codeql-action/node_modules/github-linguist/dist/directory.d.ts
Andrew Eisenberg c4a84a93d4 Add the github-linguist package
This commit only adds a single package and all of its transitive
dependencies. The github-linguist package will be used for counting
lines of code as a baseline for databases we are analyzing.
2021-04-22 15:59:49 -07:00

29 lines
583 B
TypeScript

import { LineInfo } from './file';
export interface LocDirOptions {
cwd?: string;
include?: string[] | string;
exclude?: string[] | string;
}
export interface LocResult {
files: string[];
info: LineInfo;
languages: {
[key: string]: LineInfo & {
sum: number;
};
};
}
/**
* Collect the info of a directory.
*/
export declare class LocDir {
private cwd;
private include;
private exclude;
constructor(options: LocDirOptions);
/**
* Calculate directory info.
*/
loadInfo(): Promise<LocResult>;
}