@prismshadow/penguin-library-auth · library/auth/src/account-data.ts:52

BackgroundImageStore

interface

BackgroundImageStore: the mechanism BackgroundImagesRepo implements.

API

@Interface()
export abstract class BackgroundImageStore {
  abstract get(userId: string): StoredBackgroundImage | null;
  abstract set(userId: string, image: StoredBackgroundImage): void;
  abstract clear(userId: string): void;
}

Contract Topology

Static AST wiring across @Module / @Provide / @Use
@Moduleexported by
@Provideprovided by
@Useconsumed by (1)

Members (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