@replyke/core
Version:
Replyke: Build interactive apps with social features like comments, votes, feeds, user lists, notifications, and more.
9 lines (8 loc) • 360 B
TypeScript
import { Entity, EntityIncludeParam } from "../../interfaces/models/Entity";
export interface FetchEntityByForeignIdProps {
foreignId: string;
createIfNotFound?: boolean;
include?: EntityIncludeParam;
}
declare function useFetchEntityByForeignId(): (props: FetchEntityByForeignIdProps) => Promise<Entity>;
export default useFetchEntityByForeignId;