@amityco/ts-sdk-react-native
Version:
Amity Social Cloud Typescript SDK
29 lines • 1.18 kB
TypeScript
export {};
declare global {
namespace Amity {
type PinnedPostPayload<T extends Amity.PostContentType = any> = {
pinTargets: Amity.RawPinTarget[];
pins: Amity.RawPin[];
posts: Amity.RawPost<T>[];
postChildren: Amity.RawPost<T>[];
comments: Amity.RawComment[];
videoStreamings: Amity.RawStream[];
polls: Amity.RawPoll[];
} & Amity.CommunityPayload;
type PinnedPostLiveCollection = Amity.LiveCollectionParams<{
communityId: Amity.Community['communityId'];
placement?: string | null;
sortBy: 'lastPinned' | 'lastCreated';
includeMixedStructure?: boolean;
}>;
type PinnedPostLiveCollectionCache = Omit<Amity.LiveCollectionCache<Amity.InternalPin['referenceId'], Amity.Page>, 'params'>;
type PinnedPost = Amity.RawPin & {
post: Amity.Post | undefined;
target: Amity.PinTarget | undefined;
};
type GlobalPinnedPostLiveCollection = Amity.LiveCollectionParams<{
includeMixedStructure?: boolean;
}>;
}
}
//# sourceMappingURL=pinnedPost.d.ts.map