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

Function mergeParseOptions

packages/effect/src/SchemaParser.ts:911–914  ·  view source on GitHub ↗
(
  options: SchemaAST.ParseOptions,
  overrideOptions: SchemaAST.ParseOptions | undefined
)

Source from the content-addressed store, hash-verified

909) => (input: S["Type"], options?: SchemaAST.ParseOptions) => S["Encoded"] = encodeUnknownSync
910
911const mergeParseOptions = (
912 options: SchemaAST.ParseOptions,
913 overrideOptions: SchemaAST.ParseOptions | undefined
914): SchemaAST.ParseOptions => overrideOptions ? { ...options, ...overrideOptions } : options
915
916const getValue = (value: unknown): Effect.Effect<any, SchemaIssue.Issue> => {
917 if (value === InternalParser.missing) {

Callers 3

decodeUnknownEffectFunction · 0.85
encodeUnknownEffectFunction · 0.85
makeParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected