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

Function getEffect

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

Source from the content-addressed store, hash-verified

451}
452
453const getEffect = <R>(ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => {
454 const parser = goMemo(ast, isDecoding)
455 return (input: unknown, overrideOptions?: AST.ParseOptions): Effect.Effect<any, ParseIssue, R> =>
456 parser(input, { ...mergeInternalOptions(options, overrideOptions), isEffectAllowed: true })
457}
458
459/**
460 * @throws `ParseError`

Callers 3

decodeUnknownFunction · 0.85
encodeUnknownFunction · 0.85
validateFunction · 0.85

Calls 3

goMemoFunction · 0.85
parserFunction · 0.85
mergeInternalOptionsFunction · 0.85

Tested by

no test coverage detected