Turns the rows the category service reads from categories into the Category the category routes send.

Functions

f
categoryRowToApi(row: CategoryRow): Category

Converts row to the Category the category routes send.

f
isCategoryRow(obj: unknown): obj is CategoryRow

Checks whether a row node:sqlite returned is a CategoryRow.

Interfaces

I
CategoryRow

Returned by the category service's SELECTs on categories.