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

Function mergeInternalOptions

packages/effect/src/ParseResult.ts:421–432  ·  view source on GitHub ↗
(
  options: InternalOptions | undefined,
  overrideOptions: InternalOptions | number | undefined
)

Source from the content-addressed store, hash-verified

419
420/** @internal */
421export const mergeInternalOptions = (
422 options: InternalOptions | undefined,
423 overrideOptions: InternalOptions | number | undefined
424): InternalOptions | undefined => {
425 if (overrideOptions === undefined || Predicate.isNumber(overrideOptions)) {
426 return options
427 }
428 if (options === undefined) {
429 return overrideOptions
430 }
431 return { ...options, ...overrideOptions }
432}
433
434const getEither = (ast: AST.AST, isDecoding: boolean, options?: AST.ParseOptions) => {
435 const parser = goMemo(ast, isDecoding)

Callers 5

getEitherFunction · 0.85
getEffectFunction · 0.85
isFunction · 0.85
assertsFunction · 0.85
goMemoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected