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