Files
Signal-Desktop/ts/types/LinkPreview.ts
2021-06-25 11:08:16 -05:00

21 lines
436 B
TypeScript

// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
import { AttachmentType } from './Attachment';
export type LinkPreviewImage = AttachmentType & {
data: ArrayBuffer;
};
export type LinkPreviewResult = {
title: string;
url: string;
image?: LinkPreviewImage;
description: string | null;
date: number | null;
};
export type LinkPreviewWithDomain = {
domain: string;
} & LinkPreviewResult;