Gleam - v1.0.2
    Preparing search index...

    Function getElement

    • querySelector variant that throws when no element matches. Optionally narrow the return type per tag, e.g. getElement<HTMLCanvasElement>("canvas").

      Type Parameters

      • T extends Element = HTMLElement

      Parameters

      • query: string
      • parent: ParentNode = document

      Returns T