summaryrefslogtreecommitdiff
path: root/node_modules/matcher/index.d.ts
diff options
context:
space:
mode:
authorLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
committerLinuxWizard42 <computerwizard@linuxmail.org>2022-10-12 23:08:57 +0300
commit726b81b19251674e149ccfbb1abacbd837fc6db0 (patch)
treefbdbb227dc01357eb76e8222d76185bc124c5ca6 /node_modules/matcher/index.d.ts
parent34f0890e175698940d49238097579f44e4d78c89 (diff)
downloadFlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.gz
FlashRunner-726b81b19251674e149ccfbb1abacbd837fc6db0.tar.zst
Removed files that should not have been included in git
Diffstat (limited to 'node_modules/matcher/index.d.ts')
-rw-r--r--node_modules/matcher/index.d.ts85
1 files changed, 0 insertions, 85 deletions
diff --git a/node_modules/matcher/index.d.ts b/node_modules/matcher/index.d.ts
deleted file mode 100644
index 3405f51..0000000
--- a/node_modules/matcher/index.d.ts
+++ /dev/null
@@ -1,85 +0,0 @@
-declare namespace matcher {
- interface Options {
- /**
- Treat uppercase and lowercase characters as being the same.
-
- Ensure you use this correctly. For example, files and directories should be matched case-insensitively, while most often, object keys should be matched case-sensitively.
-
- @default false
- */
- readonly caseSensitive?: boolean;
- }
-}
-
-declare const matcher: {
- /**
- Simple [wildcard](https://en.wikipedia.org/wiki/Wildcard_character) matching.
-
- It matches even across newlines. For example, `foo*r` will match `foo\nbar`.
-
- @param inputs - Strings to match.
- @param patterns - Use `*` to match zero or more characters. A pattern starting with `!` will be negated.
- @returns The `inputs` filtered based on the `patterns`.
-
- @example
- ```
- import matcher = require('matcher');
-
- matcher(['foo', 'bar', 'moo'], ['*oo', '!foo']);
- //=> ['moo']
-
- matcher(['foo', 'bar', 'moo'], ['!*oo']);
- //=> ['bar']
- ```
- */
- (inputs: readonly string[], patterns: readonly string[], options?: matcher.Options): string[];
-
- /**
- It matches even across newlines. For example, `foo*r` will match `foo\nbar`.
-
- @param input - String or array of strings to match.
- @param pattern - String or array of string patterns. Use `*` to match zero or more characters. A pattern starting with `!` will be negated.
- @returns Whether any given `input` matches every given `pattern`.
-
- @example
- ```
- import matcher = require('matcher');
-
- matcher.isMatch('unicorn', 'uni*');
- //=> true
-
- matcher.isMatch('unicorn', '*corn');
- //=> true
-
- matcher.isMatch('unicorn', 'un*rn');
- //=> true
-
- matcher.isMatch('rainbow', '!unicorn');
- //=> true
-
- matcher.isMatch('foo bar baz', 'foo b* b*');
- //=> true
-
- matcher.isMatch('unicorn', 'uni\\*');
- //=> false
-
- matcher.isMatch('UNICORN', 'UNI*', {caseSensitive: true});
- //=> true
-
- matcher.isMatch('UNICORN', 'unicorn', {caseSensitive: true});
- //=> false
-
- matcher.isMatch(['foo', 'bar'], 'f*');
- //=> true
-
- matcher.isMatch(['foo', 'bar'], ['a*', 'b*']);
- //=> true
-
- matcher.isMatch('unicorn', ['tri*', 'UNI*'], {caseSensitive: true});
- //=> false
- ```
- */
- isMatch: (input: string | readonly string[], pattern: string | readonly string[], options?: matcher.Options) => boolean;
-};
-
-export = matcher;