Type Error in effect-ts schema.parse method
Hello everyone
, I'm new to effect-ts and i'm trying to the schema.parse method, but it's resulting in a type error
this should work because they're both returning
However, i'm getting
which means that somehow the
here are dependencies everything is on the latest version so I don't think I installed the wrong packages but that's biggest cluprit right now
any help would be appreciated!
this should work because they're both returning
Effect: like the types belowHowever, i'm getting
TS2345: Argument of type 'Effect<never, ParseError, "a" | "b" | "c">' is not assignable to parameter of type 'Effect<never, unknown, unknown>'. Â Â Type 'Effect<never, ParseError, "a" | "b" | "c">' is missing the following properties from type 'Effect<never, unknown, unknown>': [EffectTypeId], [symbol], [symbol]which means that somehow the
Effect returned from S.parse is different from the regular Effect imported from the effect packagehere are dependencies everything is on the latest version so I don't think I installed the wrong packages but that's biggest cluprit right now
any help would be appreciated!
