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

Function makeSingle

packages/effect/src/SchemaIssue.ts:811–823  ·  view source on GitHub ↗
(
  out: undefined | boolean | Schema.FilterIssue,
  input?: unknown,
  options?: SchemaAST.ParseOptions
)

Source from the content-addressed store, hash-verified

809
810/** @internal */
811export function makeSingle(
812 out: undefined | boolean | Schema.FilterIssue,
813 input?: unknown,
814 options?: SchemaAST.ParseOptions
815): Issue | undefined {
816 if (out === undefined) {
817 return undefined
818 }
819 if (typeof out === "boolean") {
820 return out ? undefined : new InvalidValue(undefined, input, options)
821 }
822 return makeFilterIssue(out, input, options)
823}
824
825/** @internal */
826export function normalizeFilterOutput(

Callers 1

normalizeFilterOutputFunction · 0.70

Calls 1

makeFilterIssueFunction · 0.85

Tested by

no test coverage detected