Options
All
  • Public
  • Public/Protected
  • All
Menu

External module HackerAPI

Index

Type aliases

JSONObject

JSONObject: string | number | null | JSONObject[] | boolean | {}

Variables

Const BASE_URL

BASE_URL: "https://hackerapi.com" = "https://hackerapi.com"

The base host url path for making all request

constant
type

{ string }

Functions

Const HackerAPIFetch

  • HackerAPIFetch(__namedParameters: { body: any; fullResponse: boolean; method: string; params: {}; path: string; responseType: string; token: undefined | string }): Promise<any>
  • A wrapper for making HTTP requests to the hacker API using promises

    Parameters

    • __namedParameters: { body: any; fullResponse: boolean; method: string; params: {}; path: string; responseType: string; token: undefined | string }
      • body: any
      • fullResponse: boolean
      • method: string
      • params: {}
        • [key: string]: any
      • path: string
      • responseType: string
      • token: undefined | string

    Returns Promise<any>

Generated using TypeDoc