@softwareventures/maintain-project
Version:
Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited
19 lines (18 loc) • 721 B
TypeScript
export interface Ignore {
readonly subdirectories: ReadonlyMap<string, Ignore>;
readonly entries: readonly IgnoreGroup[];
}
export type IgnoreGroup = readonly IgnoreLine[];
export type IgnoreLine = IgnoreComment | IgnoreEntry;
export interface IgnoreComment {
readonly type: "ignore-comment";
readonly text: string;
}
export interface IgnoreEntry {
readonly type: "ignore-entry";
readonly text: string;
}
export declare function ignoreComment(text: string): IgnoreComment;
export declare function ignoreEntry(text: string): IgnoreEntry;
export type IgnoreStatus = "ignored" | "explicitly-not-ignored" | "not-ignored";
export declare function isIgnored(ignore: Ignore, path: string): IgnoreStatus;