MCPcopy Index your code
hub / github.com/Effect-TS/effect / orUndefined

Function orUndefined

packages/effect/src/SchemaAST.ts:2493–2493  ·  view source on GitHub ↗
(ast: AST)

Source from the content-addressed store, hash-verified

2491
2492/** @internal */
2493export const orUndefined = (ast: AST): AST => Union.make([ast, undefinedKeyword])
2494
2495/**
2496 * Equivalent at runtime to the built-in TypeScript utility type `Partial`.

Callers 1

partialFunction · 0.85

Calls 1

makeMethod · 0.65

Tested by

no test coverage detected