@oap75/types
Version:
JavaScript type definitions for Subsocial blockchain.
26 lines (25 loc) • 626 B
TypeScript
import { IpfsCid } from '../..';
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 {};