@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
20 lines (19 loc) • 549 B
TypeScript
import { AuthUser } from "../../interfaces/models/User";
export type UpdateUserParams = {
name?: string | null;
username?: string | null;
avatar?: string | null;
bio?: string;
birthdate?: Date | null;
location?: {
latitude: number;
longitude: number;
} | null;
metadata?: Record<string, any>;
secureMetadata?: Record<string, any>;
};
declare function useUpdateUser(): ({ userId, update, }: {
userId: string;
update: UpdateUserParams;
}) => Promise<AuthUser>;
export default useUpdateUser;