@tempots/dom > OneOfTypeOptions
OneOfTypeOptions type
Represents a mapping of types to rendering functions.
Signature:
export type OneOfTypeOptions<T extends {
type: string;
}> = {
[KK in T['type']]: (value: Signal<T extends {
type: KK;
} ? T : never>) => TNode;
};
References: Signal, TNode