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