TemplateElementCreator

@mvuijs/core / TemplateElementCreator

TemplateElementCreator<T, Params, Props> #

<T, Params, Props> Function

Type parameters #

  • T extends HTMLElement
  • Params extends ParamSpec = {}
  • Props extends {

} = T

Type declaration #

Signature #

(childrenOrParams?: TemplateElementChildren | TemplateElementParams<T, Params, Props>, children?: TemplateElementChildren): TemplateElement<T, Params, Props>;

Parameters #

Name Type
childrenOrParams? TemplateElementChildren | TemplateElementParams <T, Params, Props>
children? TemplateElementChildren

Returns #

TemplateElement <T, Params, Props>

Defined in: packages/core/src/template-element.ts:14