Interface MediaAttachmentRepository

interface MediaAttachmentRepository {
    $select(
        id: string,
    ): {
        fetch(meta?: HttpMetaParams<"none">): Promise<MediaAttachment>;
        update(
            params: Partial,
            meta?: HttpMetaParams<"json">,
        ): Promise<MediaAttachment>;
    };
    create(
        params: mastodon.rest.v1.CreateMediaAttachmentParams,
        meta?: HttpMetaParams<"json">,
    ): Promise<MediaAttachment>;
}

Methods

Methods