Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

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

P extends PropertySchema