createMixin
Summary
Creates a typed mixin factory that can be passed through the mix prop.
Signature
function createMixin<node extends EventTarget, args extends unknown[], props extends ElementProps>(
type: MixinType<node, args, props>,
): MixinFactory<node, args, props>
Parameters
type
Mixin setup function.
Returns
A function that captures mixin arguments and returns a descriptor.