Skip to content

Commit 24bc5a7

Browse files
committed
docs: fix createFileMatcher → createFilesMatcher in README
1 parent 46cd39e commit 24bc5a7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ console.log(parseTsconfig('./path/to/tsconfig.custom.json'))
162162

163163
---
164164

165-
### createFileMatcher(tsconfig: TsconfigResult, caseSensitivePaths?: boolean)
165+
### createFilesMatcher(tsconfig: TsconfigResult, caseSensitivePaths?: boolean)
166166

167167
Given a `tsconfig.json` file, it returns a file-matcher function that determines whether it should apply to a file path.
168168

@@ -188,7 +188,7 @@ For example, if it's called with a `tsconfig.json` file that has `include`/`excl
188188
189189
```ts
190190
const tsconfig = getTsconfig()
191-
const fileMatcher = tsconfig && createFileMatcher(tsconfig)
191+
const fileMatcher = tsconfig && createFilesMatcher(tsconfig)
192192

193193
/*
194194
* Returns tsconfig.json if it matches the file,

0 commit comments

Comments
 (0)