@types/picomatch 3.0.1 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
picomatch/README.md CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for picomatch (https://github.com/microma
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/picomatch.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 08 Aug 2024 19:07:15 GMT
11
+ * Last updated: Tue, 01 Apr 2025 19:02:14 GMT
12
12
  * Dependencies: none
13
13
 
14
14
  # Credits
@@ -31,7 +31,8 @@ declare namespace picomatch {
31
31
  type Glob = string | string[];
32
32
 
33
33
  interface Matcher {
34
- (test: string): boolean;
34
+ (test: string, returnObject?: false | undefined): boolean;
35
+ (test: string, returnObject: true): Result;
35
36
  }
36
37
 
37
38
  interface MatcherWithState extends Matcher {
@@ -125,7 +126,7 @@ declare namespace picomatch {
125
126
  /**
126
127
  * Limit the max length of the input string. An error is thrown if the input string is longer than this value.
127
128
  */
128
- maxLength?: boolean | undefined;
129
+ maxLength?: number | undefined;
129
130
  /**
130
131
  * Disable brace matching, so that `{a,b}` and `{1..3}` would be treated as literal characters.
131
132
  */
picomatch/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/picomatch",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "TypeScript definitions for picomatch",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/picomatch",
6
6
  "license": "MIT",
@@ -30,6 +30,7 @@
30
30
  },
31
31
  "scripts": {},
32
32
  "dependencies": {},
33
- "typesPublisherContentHash": "a9e6a94793e0b925c16b5f2f817a6f990e709ca6471bdadf690d8df24b13cf6b",
34
- "typeScriptVersion": "4.8"
33
+ "peerDependencies": {},
34
+ "typesPublisherContentHash": "fab84657a710a2244a5ce6e07573fcedcefa811e8635da527edb5d1210ee8037",
35
+ "typeScriptVersion": "5.1"
35
36
  }
picomatch/posix.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ import picomatch = require("./lib/picomatch");
2
+
3
+ export = picomatch;