@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
10 lines (9 loc) • 364 B
TypeScript
import { Entity } from "../../interfaces/models/Entity";
export interface UseInfusedDataProps {
entities: Entity[];
infuseData?: (foreignId: string) => Promise<Record<string, any> | null>;
}
declare const useInfusedData: ({ entities, infuseData }: UseInfusedDataProps) => (Entity & {
infusion: Record<string, any>;
})[];
export default useInfusedData;