UNPKG

@subsocial/api

Version:
10 lines (9 loc) 668 B
import { RawPostData, RawPostWithSomeDetails, RawSpaceData, AnyPostId, AnySpaceId, AnyAccountId } from '../types'; import { PostDetailsOpts } from '../filters'; export declare type FindStructsFns = { findPosts: (ids: AnyPostId[]) => Promise<RawPostData[]>; findSpaces: (ids: AnySpaceId[]) => Promise<RawSpaceData[]>; findProfileSpaces: (ids: AnyAccountId[]) => Promise<RawSpaceData[]>; }; /** @deprecated Load post structs and related structs like owner profile, space, root post if required. */ export declare function loadAndSetPostRelatedStructs(posts: RawPostData[], finders: FindStructsFns, opts?: PostDetailsOpts): Promise<RawPostWithSomeDetails[]>;