Options
All
  • Public
  • Public/Protected
  • All
Menu

Module redux/slices/photoSlice

Index

Properties

default

default: Reducer<SliceState, AnyAction>

The slice's reducer.

Variables

addPhoto

addPhoto: ActionCreatorWithPayload<{ dumpsterID: number; photo: RawPhoto }, string>

addPhotos

addPhotos: ActionCreatorWithPayload<{ dumpsterID: number; photos: RawPhoto[] }, string>

Const photoSlice

photoSlice: Slice<SliceState, { addPhoto: (__namedParameters: WritableDraft<SliceState>, __namedParameters: { payload: { dumpsterID: number; photo: RawPhoto } }) => void; addPhotos: (__namedParameters: WritableDraft<SliceState>, __namedParameters: { payload: { dumpsterID: number; photos: RawPhoto[] } }) => void; resetPhotos: (state: WritableDraft<SliceState>) => void; setCoverPhoto: (__namedParameters: WritableDraft<SliceState>, __namedParameters: { payload: { dumpsterID: number; photo: null | RawPhoto } }) => void; setUploadURI: (state: WritableDraft<SliceState>, __namedParameters: { payload: string }) => void }, "photos"> = ...

resetPhotos

resetPhotos: ActionCreatorWithoutPayload<string>

setCoverPhoto

setCoverPhoto: ActionCreatorWithPayload<{ dumpsterID: number; photo: null | RawPhoto }, string>

setUploadURI

setUploadURI: ActionCreatorWithPayload<string, string>

Functions

Const allPhotosSelector

  • allPhotosSelector(state: EmptyObject & Object & PersistPartial): Record<string, RawPhoto[]>
  • Parameters

    • state: EmptyObject & Object & PersistPartial

    Returns Record<string, RawPhoto[]>

Const coverPhotoMapSelector

  • coverPhotoMapSelector(state: EmptyObject & Object & PersistPartial): Record<string, null | RawPhoto>
  • Parameters

    • state: EmptyObject & Object & PersistPartial

    Returns Record<string, null | RawPhoto>

Const coverPhotoSelector

  • coverPhotoSelector(dumpsterID: number): (__namedParameters: EmptyObject & Object & PersistPartial) => null | RawPhoto
  • Parameters

    • dumpsterID: number

    Returns (__namedParameters: EmptyObject & Object & PersistPartial) => null | RawPhoto

      • (__namedParameters: EmptyObject & Object & PersistPartial): null | RawPhoto
      • Parameters

        • __namedParameters: EmptyObject & Object & PersistPartial

        Returns null | RawPhoto

Const photosSelector

  • photosSelector(dumpsterID: number): (__namedParameters: EmptyObject & Object & PersistPartial) => RawPhoto[]
  • Parameters

    • dumpsterID: number

    Returns (__namedParameters: EmptyObject & Object & PersistPartial) => RawPhoto[]

      • (__namedParameters: EmptyObject & Object & PersistPartial): RawPhoto[]
      • Parameters

        • __namedParameters: EmptyObject & Object & PersistPartial

        Returns RawPhoto[]

Const uploadURISelector

  • uploadURISelector(state: EmptyObject & Object & PersistPartial): string
  • Parameters

    • state: EmptyObject & Object & PersistPartial

    Returns string

Generated using TypeDoc