UNPKG

@subsocial/api

Version:
26 lines (25 loc) 632 B
import { IpfsCid } from '../../types'; export declare type None = null; export declare type Raw = string; export declare type IPFS = string; export declare type Hyper = string; export declare type ContentEnum = None | Raw | IPFS | Hyper; export declare type ContentEnumValue = { None: None; } | { Raw: Raw; } | { IPFS: IPFS; } | { Hyper: Hyper; }; declare type IpfsContentValue = IpfsCid | null; export declare function IpfsContent(value?: IpfsContentValue): { IPFS: IpfsCid; } | { None: null; }; export declare function OptionIpfsContent(value?: IpfsContentValue): { IPFS: IpfsCid; } | null; export {};