@tempots/dom

OneOfTypeOptions type

Represents a mapping of types to rendering functions.

Signature:

export type OneOfTypeOptionsextends {
    type: string;
}> = {
    [KK in T['type']]: (value: Signalextends {
        type: KK;
    } ? T : never>) => TNode;
};

References: Signal, TNode