@tempots/dom

OneOfFieldOptions type

Represents the options for a one-of field.

Signature:

export type OneOfFieldOptions<T extends {
    [_ in K]: string;
}, K extends string> = {
    [KK in T[K]]: (value: Signal<T extends {
        [_ in K]: KK;
    } ? T : never>) => TNode;
};

References: Signal, TNode