Skip to content

Commit 1c70d15

Browse files
committed
[DEV-13187] Coverage's attachment property does not have a shape of UploadedImage if file is an image
1 parent d4d8de6 commit 1c70d15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/types/CoverageEntry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { UploadedFile } from '@prezly/uploads';
1+
import type { UploadedFile, UploadedImage } from '@prezly/uploads';
22

33
import type { OEmbedInfo } from './common';
44
import type { Contact } from './Contact';
@@ -27,7 +27,7 @@ export interface CoverageEntry {
2727
note_content_html: string;
2828
note_content_json: string;
2929
note_content_text: string;
30-
attachment: UploadedFile | null;
30+
attachment: UploadedFile | UploadedImage | null;
3131
attachment_oembed: OEmbedInfo | null;
3232

3333
published_at: string | null;

0 commit comments

Comments
 (0)