Options
All
  • Public
  • Public/Protected
  • All
Menu

A handler that always resolves and always returns the stored value. Will return undefined if no value is stored.

The generic type extends any due to Components.js requirements.

Type parameters

  • T: any = void

Hierarchy

Index

Constructors

Properties

Methods

Constructors

Properties

value?: T

Methods

  • canHandle(input: any): Promise<void>
  • Checks if the input can be handled by this class. If it cannot handle the input, rejects with an error explaining why.

    Parameters

    • input: any

      Input that could potentially be handled.

    Returns Promise<void>

    A promise resolving if the input can be handled, rejecting with an Error if not.

  • handle(): Promise<T>
  • handleSafe(input: any): Promise<T>