@fncts/pattern 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- package/_cjs/index.cjs.map +1 -1
- package/_mjs/index.mjs.map +1 -1
- package/_src/index.ts +7 -1
- package/index.d.ts +6 -1
- package/package.json +2 -2
package/_cjs/index.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs","
|
1
|
+
{"version":3,"file":"index.cjs","names":["_tsPattern","require","match","_match","exports"],"sources":["../_src/index.ts"],"sourcesContent":[null],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAAA,UAAA,gBAAAC,OAAA;AAEA;;;AAGO,MAAMC,KAAK,GAGdC,gBAAM;AAACC,OAAA,CAAAF,KAAA,GAAAA,KAAA"}
|
package/_mjs/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","mappings":"
|
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,GAGdC,MAAM;AAEV,SAASC,UAAU,EAAEC,CAAC,EAAEC,OAAO,QAAQ,YAAY"}
|
package/_src/index.ts
CHANGED
@@ -1,8 +1,14 @@
|
|
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
|
9
|
+
export const match: {
|
10
|
+
<input, output = unset>(value: input): Match<input, output>;
|
11
|
+
<input extends [any, ...any], output = unset>(value: input): Match<input, output>;
|
12
|
+
} = _match;
|
7
13
|
|
8
14
|
export { isMatching, P, Pattern } from "ts-pattern";
|
package/index.d.ts
CHANGED
@@ -1,6 +1,11 @@
|
|
1
|
+
import type { unset } from "ts-pattern/dist/internals/symbols";
|
2
|
+
import type { Match } from "ts-pattern/dist/types/Match";
|
1
3
|
/**
|
2
4
|
* @tsplus getter global match
|
3
5
|
* @tsplus location "@fncts/pattern/index"
|
4
6
|
*/
|
5
|
-
export declare const match:
|
7
|
+
export declare const match: {
|
8
|
+
<input, output = unset>(value: input): Match<input, output>;
|
9
|
+
<input extends [any, ...any], output = unset>(value: input): Match<input, output>;
|
10
|
+
};
|
6
11
|
export { isMatching, P, Pattern } from "ts-pattern";
|