@tempots/dom > OneOfKindOptions
OneOfKindOptions type
The options for a one-of kind field.
Signature:
export type OneOfKindOptions<T extends {
kind: string;
}> = {
[KK in T['kind']]: (value: Signal<T extends {
kind: KK;
} ? T : never>) => TNode;
};
References: Signal, TNode