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

Function combineChecks

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

Source from the content-addressed store, hash-verified

3273const parsePropertiesConcurrent = iterateConcurrent<ObjectParserState, ParsedProperty>()(parsePropertiesOptions)
3274
3275function combineChecks(a: Checks | undefined, b: Checks | undefined): Checks | undefined {
3276 if (!a) return b
3277 if (!b) return a
3278 return [...a, ...b]
3279}
3280
3281/** @internal */
3282export function struct<Fields extends Schema.Struct.Fields>(

Callers 3

structWithRestFunction · 0.70
appendChecksFunction · 0.70
projectTypeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected