Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Classes

Type aliases

Functions

Type aliases

PromiseEx

PromiseEx<T>: Promise<T> & { reject: any; resolve: any }

Type that extends the Promise class with the resolve and reject methods so that the promise can be created in one place and resolved or rejected in a different place.

Type parameters

  • T = any

Functions

createPromiseEx

  • Creates Promise objects that can be resolved or rejected externally. The returned PromiseEx object has resolve and reject methods.

    Type parameters

    • T = any

    Returns PromiseEx<T>

Const isSvg

  • isSvg(elm: Element): boolean
  • Determines whether the given element is one of the elements from the SVG spec; that is, or any other from SVG.

    Parameters

    • elm: Element

      Element to test

    Returns boolean

Const isSvgSvg

  • isSvgSvg(elm: Element): boolean
  • Determines whether the given element is the element.

    Parameters

    • elm: Element

      Element to test

    Returns boolean