Skip to Content

primaryTopic

primaryTopic(topics: readonly StoredTopic[] | null | undefined): StoredTopic | null

Defined in: src/lib/db/entities/types.ts:91 

The first topic with the highest weight, or null when there are none.

Parameters

ParameterType

topics

readonly StoredTopic[] | null | undefined

Returns

StoredTopic | null

Last updated on