Skip to content

Class: Configuration

Table of contents

Constructors

Accessors

Constructors

constructor

new Configuration(configuration?)

Parameters

Name Type
configuration ConfigurationParameters

Accessors

accessToken

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

Returns

fn

▸ (name?, scopes?): string | Promise<string>

Parameters
Name Type
name? string
scopes? string[]
Returns

string | Promise<string>


apiKey

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

Returns

fn

▸ (name): string

Parameters
Name Type
name string
Returns

string


basePath

get basePath(): string

Returns

string


credentials

get credentials(): RequestCredentials

Returns

RequestCredentials


fetchApi

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

Returns

fn

▸ (input, init?): Promise<Response>

Parameters
Name Type
input RequestInfo
init? RequestInit
Returns

Promise<Response>


headers

get headers(): HTTPHeaders

Returns

HTTPHeaders


middleware

get middleware(): Middleware[]

Returns

Middleware[]


password

get password(): string

Returns

string


queryParamsStringify

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

Returns

fn

▸ (params): string

Parameters
Name Type
params HTTPQuery
Returns

string


username

get username(): string

Returns

string