Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

ProductContextValue

ProductContextValue<Key> = Register extends object ? Key extends keyof Registered ? Registered[Key] extends object ? Schema extends ProductContextSchema ? z.input<Schema> : undefined : undefined : unknown : unknown

The value a product’s context schema takes, for a registered key: undefined for one that declares none, anything where no products are registered.

Type Parameter
Key extends string