@effect/match
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -16,3 +16,3 @@ export type ExtractMatch<I, P> = [ReplaceUnions<I, P>] extends [infer EI] ? Extract<EI, P> : never; | ||
type MaybeReplace<I, P> = [P] extends [I] ? P : [I] extends [P] ? Replace<I, P> : Fail; | ||
type FlattenRecordFails<R, D = Fail> = Fail extends R[keyof R] ? D : R; | ||
type FlattenRecordFails<R, D = Fail> = Extract<R[keyof R], Fail> extends never ? R : D; | ||
type FlattenUnionFails<U> = [U] extends [Fail] ? Fail : Exclude<U, Fail>; | ||
@@ -19,0 +19,0 @@ type BuiltInObjects = Function | Date | RegExp | Generator | { |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
const Fail = /*#__PURE__*/Symbol.for("ReplaceUnions/Fail"); | ||
const Fail = /*#__PURE__*/Symbol.for("@effect/match/Fail"); | ||
//# sourceMappingURL=ExtractMatch.js.map |
{ | ||
"name": "@effect/match", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67089