Skip to content

UseSuggestionsReturn

reference
1 min readUpdated

Kind: Interface

Source: atloria-monorepo/packages/ui-react/src/hooks/useSuggestions.ts

Return type for useSuggestions hook

Properties

PropertyType
suggestionsSuggestionWithUser[]
loadingboolean
error`Error
addSuggestion(dto: CreateSuggestionDto) => Promise<SuggestionWithUser>
updateSuggestion(suggestionId: string, status: SuggestionStatus, reviewComment?: string) => Promise<SuggestionWithUser>
deleteSuggestion(suggestionId: string) => Promise<void>
acceptSuggestion(suggestionId: string, reviewComment?: string) => Promise<SuggestionWithUser>
rejectSuggestion(suggestionId: string, reviewComment?: string) => Promise<SuggestionWithUser>
refresh() => Promise<void>

Was this page helpful?

Download as PDF