Typedoc API Docs
    Preparing search index...

    Class Guard

    Index

    Constructors

    Methods

    • Checks for a valid number

      Parameters

      • name: string

        The name of the attribute for error messages

      • val: any

        The value to check

      • el: Element | null

        The element where the attribute is defined, for error context

      Returns number | undefined

    • Checks for a valid positive number >= 0

      Parameters

      • name: string

        The name of the attribute for error messages

      • val: any

        The value to check

      • el: Element | null

        The element where the attribute is defined, for error context

      Returns number | undefined

    • Checks for a valid integer

      Parameters

      • name: string

        The name of the attribute for error messages

      • val: any

        The value to check

      • el: Element | null

        The element where the attribute is defined, for error context

      Returns number | undefined

    • Checks for a valid, positive integer >= 0

      Parameters

      • name: string

        The name of the attribute for error messages

      • val: any

        The value to check

      • el: Element | null

        The element where the attribute is defined, for error context

      Returns number | undefined

    • Checks for a non-empty array of points (required for polygons/polylines)

      Parameters

      • Optionalval: any
      • Optionalname: string
      • OptionalminPoints: number
      • Optionalel: Element

      Returns [number, number][] | undefined