@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
18 lines (17 loc) • 543 B
TypeScript
import { Entity } from "../../interfaces/models/Entity";
export interface UpdateEntityProps {
entityId: string;
update: {
title?: string | null | undefined;
content?: string | null | undefined;
media?: Record<string, any>[];
keywords?: string[];
location?: {
latitude: number;
longitude: number;
};
metadata?: Record<string, any>;
};
}
declare function useUpdateEntity(): (props: UpdateEntityProps) => Promise<Entity>;
export default useUpdateEntity;