MCPcopy Index your code
hub / github.com/Effect-TS/effect / getSync

Function getSync

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

Source from the content-addressed store, hash-verified

438}
439
440const getSync = (ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => {
441 const parser = getEither(ast, isDecoding, options)
442 return (input: unknown, overrideOptions?: AST.ParseOptions) =>
443 Either.getOrThrowWith(parser(input, overrideOptions), parseError)
444}
445
446/** @internal */
447export const getOption = (ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => {

Callers 3

decodeUnknownSyncFunction · 0.85
encodeUnknownSyncFunction · 0.85
validateSyncFunction · 0.85

Calls 2

getEitherFunction · 0.85
parserFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…