Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "def"

Index

Functions

Const defElement

  • defElement<T, B>(tag: string, baseAttribs?: Partial<T>): ElementFactory<T, B>
  • HOF element. Returns new optimized element factory for given tag name, optional baseAttribs defaults and generics for defining supported attributes and children. See ElementFactory for supported call formats of the resulting function..

    Type parameters

    • T

    • B

    Parameters

    • tag: string
    • Optional baseAttribs: Partial<T>

    Returns ElementFactory<T, B>

Const defElements

Generated using TypeDoc