Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

FactoryOptionsFromSchema

FactoryOptionsFromSchema<S> = { [K in keyof S]?: S[K] extends ArrayPropertySchema<infer Items> ? FactoryOptionsFromItemSchema<Items>[] : S[K] extends PropertySchema ? FactoryOptionFromProperty<S[K]> : never }

Defined in: packages/sigma/src/primitives/schema.ts:360

Derives factory options from a complete primitive schema. All properties are optional (for input).

Type Parameters

S

S extends PrimitiveSchema