diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:50:21 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:50:21 +0800 |
| commit | 0379526e20e1ff212df23e6326741aa9c06df204 (patch) | |
| tree | 340143b0c4dc4280c88ba1591d137b53477005b3 /node_modules/multimatch/index.d.ts | |
| parent | 7aba14fb7c970c6e6af82c805db2aef6d70bfe2b (diff) | |
added doiuse plugin for postcss
Diffstat (limited to 'node_modules/multimatch/index.d.ts')
| -rw-r--r-- | node_modules/multimatch/index.d.ts | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/node_modules/multimatch/index.d.ts b/node_modules/multimatch/index.d.ts new file mode 100644 index 00000000..ecddcdc5 --- /dev/null +++ b/node_modules/multimatch/index.d.ts @@ -0,0 +1,28 @@ +import {IOptions} from 'minimatch'; + +declare namespace multimatch { + type Options = Readonly<IOptions>; +} + +/** +Extends [`minimatch.match()`](https://github.com/isaacs/minimatch#minimatchmatchlist-pattern-options) with support for multiple patterns. + +@param paths - Paths to match against. +@param patterns - Globbing patterns to use. For example: `['*', '!cake']`. See supported [`minimatch` patterns](https://github.com/isaacs/minimatch#usage). +@returns The matching paths in the order of input paths. + +@example +``` +import multimatch = require('multimatch'); + +multimatch(['unicorn', 'cake', 'rainbows'], ['*', '!cake']); +//=> ['unicorn', 'rainbows'] +``` +*/ +declare function multimatch( + paths: string | readonly string[], + patterns: string | readonly string[], + options?: multimatch.Options +): string[]; + +export = multimatch; |
