Skip to content
IC Reactor

CandidVariantKey

CandidVariantKey<T> = T extends any ? Exclude<keyof T, "_type"> | T extends object ? string extends D ? never : D : never : never

Defined in: types/variant.ts:19

The selectable keys of a variant.

Display variants carry a _type discriminant alongside a payload key. A null-payload arm has no payload key at all ({ _type: "Pending" }), so the discriminant value is the only key that identifies it — CandidVariantValue already resolves such a key to null.

T