diff --git a/src/primitive.ts b/src/primitive.ts index 9ecae69..6759784 100644 --- a/src/primitive.ts +++ b/src/primitive.ts @@ -19,6 +19,11 @@ export const getPrimitiveUnionMatcherW: () => < >( pattern: Simplify

, ) => UnaryFn> = () => (pattern) => (shape) => + /* + Rewrite not to use any is possible, was evaluated and solutions were + more complex than the current solution. + */ + // oxlint-disable-next-line typescript/no-explicit-any typescript/no-unsafe-type-assertion (pattern[shape] as any)(shape); @@ -45,6 +50,11 @@ export const getPrimitiveUnionMatcherPartial: () => < >( pattern: Simplify>, ) => UnaryFn = () => (pattern) => (shape) => + /* + Rewrite not to use any is possible, was evaluated and solutions were + more complex than the current solution. + */ + // oxlint-disable-next-line typescript/no-explicit-any typescript/no-unsafe-type-assertion (pattern[shape] ?? (pattern as any)["_"])(shape);