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

Function combineChecks

packages/effect/src/SchemaAST.ts:2434–2438  ·  view source on GitHub ↗
(a: Checks | undefined, b: Checks | undefined)

Source from the content-addressed store, hash-verified

2432})
2433
2434function combineChecks(a: Checks | undefined, b: Checks | undefined): Checks | undefined {
2435 if (!a) return b
2436 if (!b) return a
2437 return [...a, ...b]
2438}
2439
2440/** @internal */
2441export function struct<Fields extends Schema.Struct.Fields>(

Callers 3

structWithRestFunction · 0.70
appendChecksFunction · 0.70
SchemaAST.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected