MCPcopy
hub / github.com/Effect-TS/effect / getEither

Function getEither

packages/effect/src/ParseResult.ts:434–438  ·  view source on GitHub ↗
(ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions)

Source from the content-addressed store, hash-verified

432}
433
434const getEither = (ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => {
435 const parser = goMemo(ast, isDecoding)
436 return (u: unknown, overrideOptions?: AST.ParseOptions): Either.Either<any, ParseIssue> =>
437 parser(u, mergeInternalOptions(options, overrideOptions)) as any
438}
439
440const getSync = (ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => {
441 const parser = getEither(ast, isDecoding, options)

Callers 5

getSyncFunction · 0.85
getOptionFunction · 0.85
decodeUnknownEitherFunction · 0.85
encodeUnknownEitherFunction · 0.85
validateEitherFunction · 0.85

Calls 3

goMemoFunction · 0.85
parserFunction · 0.85
mergeInternalOptionsFunction · 0.85

Tested by

no test coverage detected