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

FactoryOptionFromProperty

FactoryOptionFromProperty<P> = IsVariableProperty<P> extends true ? ValueSource<TypeFromPropertySchema<P>> : TypeFromPropertySchema<P>

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

Derives the factory option type from a single property schema.

  • Variable-capable properties become ValueSource<T>
  • Static properties remain T

Type Parameters

P

P extends PropertySchema