Skip to main content

Class: Configuration

Types.Configuration

Constructors

constructor

new Configuration(configuration?)

Parameters

NameType
configurationConfigurationParameters

Accessors

accessToken

get accessToken(): undefined | (name?: string, scopes?: string[]) => string | Promise<string>

Returns

undefined | (name?: string, scopes?: string[]) => string | Promise<string>


apiKey

get apiKey(): undefined | (name: string) => string

Returns

undefined | (name: string) => string


basePath

get basePath(): string

Returns

string


config

set config(configuration): void

Parameters

NameType
configurationConfiguration

Returns

void


credentials

get credentials(): undefined | RequestCredentials

Returns

undefined | RequestCredentials


fetchApi

get fetchApi(): undefined | (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>

Returns

undefined | (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>


headers

get headers(): undefined | HTTPHeaders

Returns

undefined | HTTPHeaders


middleware

get middleware(): Middleware[]

Returns

Middleware[]


password

get password(): undefined | string

Returns

undefined | string


queryParamsStringify

get queryParamsStringify(): (params: HTTPQuery) => string

Returns

fn

▸ (params): string

Parameters
NameType
paramsHTTPQuery
Returns

string


username

get username(): undefined | string

Returns

undefined | string