@oap75/api
Version:
JavaScript API for Subsocial blockchain.
13 lines (12 loc) • 506 B
TypeScript
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 {};