Function cxUnavailable

  • Creates unavailable context entry accessor function.

    The created function would throw a CxReferenceError on each call.

    Parameters

    • entry: CxEntry<unknown, unknown>

      The unavailable entry.

    • Optional message: string

      Error message.

    • Optional reason: unknown

      The reason why entry is no longer available.

    Returns ((this) => never)

    A no-arg function that always throws.

      • (this): never
      • Parameters

        • this: void

        Returns never

Generated using TypeDoc