4.6 KiB
bandcamp-fetch / AutocompleteAPI
Class: AutocompleteAPI
Hierarchy
-
↳
AutocompleteAPI
Table of contents
Constructors
Accessors
Methods
Constructors
constructor
• new AutocompleteAPI(params
)
Parameters
Name | Type |
---|---|
params |
BaseAPIParams |
Inherited from
Defined in
Accessors
cache
• Protected
get
cache(): Cache
Returns
Inherited from
BaseAPI.cache
Defined in
Methods
fetch
▸ Protected
fetch(url
, jsonResponse
, method
, payload?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
false |
method |
HEAD |
payload? |
undefined |
Returns
Promise
<Response
>
Inherited from
Defined in
▸ Protected
fetch(url
, jsonResponse
, method?
, payload?
): Promise
<any
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse |
true |
method? |
FetchMethod |
payload? |
Record <string , any > |
Returns
Promise
<any
>
Inherited from
Defined in
▸ Protected
fetch(url
, jsonResponse?
, method?
, payload?
): Promise
<string
>
Parameters
Name | Type |
---|---|
url |
string |
jsonResponse? |
boolean |
method? |
FetchMethod |
payload? |
Record <string , any > |
Returns
Promise
<string
>
Inherited from
Defined in
getSuggestions
▸ getSuggestions(params
): Promise
<AutocompleteLocation
[]>
Parameters
Name | Type |
---|---|
params |
AutocompleteAPIGetSuggestionsParams & { itemType : Location } |
Returns
Promise
<AutocompleteLocation
[]>
Defined in
lib/autocomplete/AutocompleteAPI.ts:21
▸ getSuggestions(params
): Promise
<AutoCompleteTag
[]>
Parameters
Name | Type |
---|---|
params |
AutocompleteAPIGetSuggestionsParams & { itemType : Tag } |
Returns
Promise
<AutoCompleteTag
[]>
Defined in
lib/autocomplete/AutocompleteAPI.ts:22
▸ getSuggestions(params
): Promise
<AutoCompleteTag
[] | AutocompleteLocation
[]>
Parameters
Name | Type |
---|---|
params |
AutocompleteAPIGetSuggestionsParams |
Returns
Promise
<AutoCompleteTag
[] | AutocompleteLocation
[]>