Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Unsplash

Hierarchy

Index

Constructors

Properties

apiKey: string
color: string = "#333"
fetchSettings?: RequestInit
getButton: (image: UnsplashResult) => string

Type declaration

    • (image: UnsplashResult): string
    • Parameters

      • image: UnsplashResult

      Returns string

getPopularResults: (response: any) => UnsplashResult[]

Type declaration

    • (response: any): UnsplashResult[]
    • Parameters

      • response: any

      Returns UnsplashResult[]

getSearchResults: (response: any) => UnsplashResult[]

Type declaration

    • (response: any): UnsplashResult[]
    • Parameters

      • response: any

      Returns UnsplashResult[]

icon: string = ""
invisible: boolean = false
loading: boolean = false
name: string = ""
noRecolor: boolean = false
popularEndpoint: string
poweredByUrl: string
results: UnsplashResult[] = []
searchEndpoint: (apiKey: string, query: string) => string

Type declaration

    • (apiKey: string, query: string): string
    • Parameters

      • apiKey: string
      • query: string

      Returns string

stop: () => void = ...

Type declaration

    • (): void
    • Returns void

supports: () => boolean = ...

Type declaration

    • (): boolean
    • Returns boolean

type: string = "service"

Methods

Generated using TypeDoc