Skip to content

Commit

Permalink
feat(@tinacms/media): add optional previewSrc to Media interface
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalkr committed Sep 11, 2020
1 parent 0017588 commit 664701e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/@tinacms/media/src/media.ts
Expand Up @@ -29,6 +29,11 @@ export interface Media {
* The name of the file.
*/
filename: string

/**
* A url that provides an image preview of the media file
*/
previewSrc?: string
}

export interface MediaUploadOptions {
Expand Down

0 comments on commit 664701e

Please sign in to comment.