UNPKG

@oap75/api

Version:
13 lines (12 loc) 506 B
import { CommonContent } from '@subsocial/types'; import { ContentFilter } from './types'; declare type HasContent = { content?: CommonContent; }; declare type Props<T> = ContentFilter & { structs: T[]; }; export declare const isEmptyIpfsContent: (struct?: HasContent | undefined) => boolean; export declare const notEmptyIpfsContent: (struct?: HasContent | undefined) => boolean; export declare function contentFilter<T extends HasContent>({ structs, withContentOnly }: Props<T>): T[]; export {};