MCPcopy Create free account
hub / github.com/Effect-TS/effect / getValue

Function getValue

packages/effect/src/SchemaParser.ts:916–921  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

914): SchemaAST.ParseOptions => overrideOptions ? { ...options, ...overrideOptions } : options
915
916const getValue = (value: unknown): Effect.Effect<any, SchemaIssue.Issue> => {
917 if (value === InternalParser.missing) {
918 return Effect.fail(new SchemaIssue.InvalidValue())
919 }
920 return Effect.succeed(value)
921}
922
923/** @internal */
924export function run<T, R>(ast: SchemaAST.AST) {

Callers 1

runWithCompilerFunction · 0.85

Calls 2

failMethod · 0.45
succeedMethod · 0.45

Tested by

no test coverage detected