@subsocial/api
Version:
JavaScript API for Subsocial blockchain.
13 lines (12 loc) • 537 B
TypeScript
import { IpfsCommonContent, CommonContent } from '../types';
import { ContentFilter } from './types';
declare type HasContent = {
content?: CommonContent | IpfsCommonContent;
};
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 {};