Skip to content

kient / CategoryAPI

Class: CategoryAPI ​

src/api/category/index.ts:9

Description placeholder

Extends ​

  • APIBase

Constructors ​

new CategoryAPI() ​

ts
new CategoryAPI(kient): CategoryAPI

src/api/api-base.ts:7

Parameters ​

ParameterType
kientKient

Returns ​

CategoryAPI

Inherited from ​

ts
APIBase.constructor

Properties ​

PropertyModifierTypeInherited fromDefined in
kientreadonlyKientAPIBase.kientsrc/api/api-base.ts:5

Methods ​

query() ​

ts
query(query): Promise<Category[]>

src/api/category/index.ts:15

Returns an array of categories matching search query

Parameters ​

ParameterTypeDescription
querystringAccepts a string that will be matched against the category title

Returns ​

Promise<Category[]>