Skip to content

autoWrapSpec

autoWrapSpec(value): Spec

Defined in: extract/spec.ts:318

Auto-wrap a value that could be a Spec, FluentSpec, or plain record into a Spec. Plain records { key: SpecLike } are wrapped with object().

Spec | FluentSpec<Spec> | Record<string, SpecLike>

Spec