@fncts/pattern 0.0.13 → 0.0.15

Sign up to get free protection for your applications and to get access to all the features.
package/_cjs/index.cjs CHANGED
@@ -26,6 +26,5 @@ var _tsPattern = /*#__PURE__*/require("ts-pattern");
26
26
  /**
27
27
  * @tsplus getter global match
28
28
  */
29
- const match = _tsPattern.match;
30
- exports.match = match;
29
+ const match = exports.match = _tsPattern.match;
31
30
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["_tsPattern","require","match","_match","exports"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,gBAAAC,OAAA;AAEA;;;AAGO,MAAMC,KAAK,GAAGC,gBAAM;AAACC,OAAA,CAAAF,KAAA,GAAAA,KAAA"}
1
+ {"version":3,"file":"index.cjs","names":["_tsPattern","require","match","exports","_match"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,UAAA,gBAAAC,OAAA;AAEA;;;AAGO,MAAMC,KAAK,GAAAC,OAAA,CAAAD,KAAA,GAAkEE,gBAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["match","_match","isMatching","P","Pattern"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":"AAAA,SAASA,KAAK,IAAIC,MAAM,QAAQ,YAAY;AAE5C;;;AAGA,OAAO,MAAMD,KAAK,GAAGC,MAAM;AAE3B,SAASC,UAAU,EAAEC,CAAC,EAAEC,OAAO,QAAQ,YAAY"}
1
+ {"version":3,"file":"index.mjs","names":["match","_match","isMatching","P","Pattern"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":"AAGA,SAASA,KAAK,IAAIC,MAAM,QAAQ,YAAY;AAE5C;;;AAGA,OAAO,MAAMD,KAAK,GAAkEC,MAAM;AAE1F,SAASC,UAAU,EAAEC,CAAC,EAAEC,OAAO,QAAQ,YAAY"}
package/_src/index.ts CHANGED
@@ -1,8 +1,11 @@
1
+ import type { unset } from "ts-pattern/dist/internals/symbols";
2
+ import type { Match } from "ts-pattern/dist/types/Match";
3
+
1
4
  import { match as _match } from "ts-pattern";
2
5
 
3
6
  /**
4
7
  * @tsplus getter global match
5
8
  */
6
- export const match = _match;
9
+ export const match: <input, output = unset>(value: input) => Match<input, output> = _match;
7
10
 
8
11
  export { isMatching, P, Pattern } from "ts-pattern";
package/index.d.ts CHANGED
@@ -1,7 +1,8 @@
1
- import { match as _match } from "ts-pattern";
1
+ import type { unset } from "ts-pattern/dist/internals/symbols";
2
+ import type { Match } from "ts-pattern/dist/types/Match";
2
3
  /**
3
4
  * @tsplus getter global match
4
5
  * @tsplus location "@fncts/pattern/index"
5
6
  */
6
- export declare const match: typeof _match;
7
+ export declare const match: <input, output = unset>(value: input) => Match<input, output>;
7
8
  export { isMatching, P, Pattern } from "ts-pattern";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@fncts/pattern",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "dependencies": {
5
- "ts-pattern": "^4.2.2"
5
+ "ts-pattern": "^5.0.8"
6
6
  },
7
7
  "exports": {
8
8
  "./*": {