crossbell - v1.13.1

    Interface NoteMetadataAttachmentBase<ContentType>

    interface NoteMetadataAttachmentBase<ContentType extends "address" | "content"> {
        address?: ContentType extends "address" ? string : never;
        alt?: string;
        content?: ContentType extends "content" ? string : never;
        height?: number;
        mime_type?: string;
        name?: string;
        size_in_bytes?: number;
        width?: number;
    }

    Type Parameters

    • ContentType extends "address" | "content"
    Index

    Properties

    address?: ContentType extends "address" ? string : never

    The address (url) of this attachment.

    alt?: string

    The alternate text (description) of this attachment. This is used for accessibility or is displayed when the source is not available.

    content?: ContentType extends "content" ? string : never

    The plain content of this attachment.

    height?: number

    The height of this attachment, in pixels.

    mime_type?: string

    The mime type of the content.

    name?: string

    The name of this attachment.

    size_in_bytes?: number

    The size of the content in bytes.

    width?: number

    The width of this attachment, in pixels.

    MMNEPVFCICPMFPCPTTAAATR