Options
All
  • Public
  • Public/Protected
  • All
Menu

A data container for all profile links that someone could use to stalk a user

struct
extends

{ HackerAPI.Base }

Hierarchy

Index

Constructors

constructor

  • new Urls(__namedParameters?: { behance: undefined | null | string; bitbucket: undefined | null | string; deviantart: undefined | null | string; devpost: undefined | null | string; dribbble: undefined | null | string; facebook: undefined | null | string; flickr: undefined | null | string; github: undefined | null | string; instagram: undefined | null | string; jsfiddle: undefined | null | string; linkedin: undefined | null | string; portfolio: undefined | null | string; resume: undefined | null | string; soundcloud: undefined | null | string; twitter: undefined | null | string }): Urls
  • Creates a new Urls instance

    constructor

    Parameters

    • Default value __namedParameters: { behance: undefined | null | string; bitbucket: undefined | null | string; deviantart: undefined | null | string; devpost: undefined | null | string; dribbble: undefined | null | string; facebook: undefined | null | string; flickr: undefined | null | string; github: undefined | null | string; instagram: undefined | null | string; jsfiddle: undefined | null | string; linkedin: undefined | null | string; portfolio: undefined | null | string; resume: undefined | null | string; soundcloud: undefined | null | string; twitter: undefined | null | string } = {}
      • behance: undefined | null | string
      • bitbucket: undefined | null | string
      • deviantart: undefined | null | string
      • devpost: undefined | null | string
      • dribbble: undefined | null | string
      • facebook: undefined | null | string
      • flickr: undefined | null | string
      • github: undefined | null | string
      • instagram: undefined | null | string
      • jsfiddle: undefined | null | string
      • linkedin: undefined | null | string
      • portfolio: undefined | null | string
      • resume: undefined | null | string
      • soundcloud: undefined | null | string
      • twitter: undefined | null | string

    Returns Urls

Properties

behance

behance: string | null

bitbucket

bitbucket: string | null

deviantart

deviantart: string | null

devpost

devpost: string | null

dribbble

dribbble: string | null

facebook

facebook: string | null

flickr

flickr: string | null

github

github: string | null

instagram

instagram: string | null

jsfiddle

jsfiddle: string | null

linkedin

linkedin: string | null

portfolio

portfolio: string | null

resume

resume: string | null

soundcloud

soundcloud: string | null

specialHandlers

specialHandlers: {}

Type declaration

  • [key: string]: (...args: unknown[]) => [string, undefined | string]
      • (...args: unknown[]): [string, undefined | string]
      • Parameters

        • Rest ...args: unknown[]

        Returns [string, undefined | string]

twitter

twitter: string | null

Methods

toHackerAPIFormat

  • toHackerAPIFormat(method?: undefined | string): {}

Static dateHandler

  • dateHandler(key: string, date: string | Date): string[]
  • Converts a Javascript date (where only day, month and year are relevant) to a format understood by hackerapi

    Parameters

    • key: string
    • date: string | Date

      Doesn't do anything if string

    Returns string[]

    key: [0], value: [1]

Static dateTimeHandler

  • dateTimeHandler(key: string, datetime: string | Date): string[]
  • Converts Javascript date to a format understood by hackerapi

    Parameters

    • key: string
    • datetime: string | Date

    Returns string[]

    key: [0], value: [1]

Static doNotSendHandler

  • doNotSendHandler(key: string, _: any): (undefined | string)[]
  • Does not send the field to hackerapi

    Parameters

    • key: string
    • _: any

    Returns (undefined | string)[]

    key: [0], value: [1]

Static renameHandler

  • renameHandler(renamedKey: string): (Anonymous function)
  • HOC for renaming a field before sending it to hackerapi

    Parameters

    • renamedKey: string

      The string to rename the key to

    Returns (Anonymous function)

    key: [0], value: [1]

Generated using TypeDoc