@fncts/pattern 0.0.14 → 0.0.16
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.
- package/_cjs/index.cjs +1 -2
- package/_cjs/index.cjs.map +1 -1
- package/_mjs/index.mjs.map +1 -1
- package/_src/index.ts +1 -4
- package/index.d.ts +1 -4
- package/package.json +2 -2
package/_cjs/index.cjs
CHANGED
package/_cjs/index.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["_tsPattern","require","match","
|
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"}
|
package/_mjs/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
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,
|
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
@@ -6,9 +6,6 @@ import { match as _match } from "ts-pattern";
|
|
6
6
|
/**
|
7
7
|
* @tsplus getter global match
|
8
8
|
*/
|
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;
|
9
|
+
export const match: <input, output = unset>(value: input) => Match<input, output> = _match;
|
13
10
|
|
14
11
|
export { isMatching, P, Pattern } from "ts-pattern";
|
package/index.d.ts
CHANGED
@@ -4,8 +4,5 @@ import type { Match } from "ts-pattern/dist/types/Match";
|
|
4
4
|
* @tsplus getter global match
|
5
5
|
* @tsplus location "@fncts/pattern/index"
|
6
6
|
*/
|
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
|
-
};
|
7
|
+
export declare const match: <input, output = unset>(value: input) => Match<input, output>;
|
11
8
|
export { isMatching, P, Pattern } from "ts-pattern";
|