Schema.decodeEither for sync validation
Use Schema.decodeEither when you need sync validation (e.g. in a non-Effect context). Returns Either<ParseError, A>.
Or use Schema.decode which returns Effect<A, ParseError> for Effect pipelines.
- Use
Schema.decodeUnknownEither(schema)(data)for sync - Returns Either - isRight for success, isLeft for failure
- Use decode in Effect pipelines
Loading code editor...