123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- type Pathname = string
- interface TestResult {
- ignored: boolean
- unignored: boolean
- }
- export interface Ignore {
-
- add(pattern: string | Ignore): this
-
- add(patterns: (string | Ignore)[]): this
-
- filter(pathnames: Pathname[]): Pathname[]
-
- createFilter(): (pathname: Pathname) => boolean
-
- ignores(pathname: Pathname): boolean
-
- test(pathname: Pathname): TestResult
- }
- interface Options {
- ignorecase?: boolean
- }
- declare function ignore(options?: Options): Ignore
- declare namespace ignore {
- export function isPathValid (pathname: string): boolean
- }
- export default ignore
|