useSalutations
Category:
Context & Language
Composable for fetching the salutations list.
Types
ts
export function useSalutations(): UseSalutationsReturn
ts
export type UseSalutationsReturn = {
/**
* All available salutations
*/
getSalutations: ComputedRef<Schemas["Salutation"][]>;
/**
* Fetches the salutations list and assigns the result to the `salutations` property
*/
fetchSalutations(): Promise<
operations["readSalutation post /salutation"]["response"]
>;
};