AccountDataModule · library/auth/src/repos/background-images.ts:9

BackgroundImagesRepo

component

No JSDoc comment in source yet.

API

@Component()
export class BackgroundImagesRepo implements BackgroundImageStore {
  @Use() private readonly db!: Db;
  get(userId: string): StoredBackgroundImage | null;
  set(userId: string, image: StoredBackgroundImage): void;
  clear(userId: string): void;
}

Dependencies & Wiring

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

Methods (3)

get

get(userId: string): StoredBackgroundImage | null
@paramuserIdstring
@returnsStoredBackgroundImage | null

set

set(userId: string, image: StoredBackgroundImage): void
@paramuserIdstring
@paramimageStoredBackgroundImage
@returnsvoid

clear

clear(userId: string): void
@paramuserIdstring
@returnsvoid