From 08958fa38ac1a59f82b0cf912208ec9548fb28cc Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Sun, 1 Sep 2024 10:25:56 -0500 Subject: [PATCH] docs: correct ignore method names fix #607 PR-URL: https://github.com/isaacs/node-glob/pull/608 Credit: @jedwards1211 Close: #608 Reviewed-by: @isaacs --- README.md | 4 ++-- src/glob.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 023cd779..152862c6 100644 --- a/README.md +++ b/README.md @@ -518,8 +518,8 @@ share the previously loaded cache. as modified time, permissions, and so on. Note that this will incur a performance cost due to the added system calls. -- `ignore` string or string[], or an object with `ignore` and - `ignoreChildren` methods. +- `ignore` string or string[], or an object with `ignored` and + `childrenIgnored` methods. If a string or string[] is provided, then this is treated as a glob pattern or array of glob patterns to exclude from matches. diff --git a/src/glob.ts b/src/glob.ts index 89bd075c..6beadfe2 100644 --- a/src/glob.ts +++ b/src/glob.ts @@ -101,7 +101,7 @@ export interface GlobOptions { follow?: boolean /** - * string or string[], or an object with `ignore` and `ignoreChildren` + * string or string[], or an object with `ignored` and `childrenIgnored` * methods. * * If a string or string[] is provided, then this is treated as a glob