SettingsModule · library/setting/src/repos/ui-prefs.ts:8

UiPrefsRepo

component

No JSDoc comment in source yet.

API

@Component()
export class UiPrefsRepo implements UiPrefsStore {
  @Use() private readonly db!: Db;
  get(userId: string): string | null;
  set(userId: string, prefsJson: string): void;
}

Dependencies & Wiring

Extracted from class decorators
implementsinterfaces
@Userequires (1)
db: Db

Methods (2)

get

get(userId: string): string | null

Returns the raw JSON string; null if never set.

@paramuserIdstring
@returnsstring | null

set

set(userId: string, prefsJson: string): void
@paramuserIdstring
@paramprefsJsonstring
@returnsvoid