diff --git a/packages/media-entity/src/image.ts b/packages/media-entity/src/image.ts index 38e40ce..4d37a95 100644 --- a/packages/media-entity/src/image.ts +++ b/packages/media-entity/src/image.ts @@ -1,4 +1,5 @@ import { ResponseOf } from '@modernice/typed-response' +import { Storage } from './storage.js' /** * Image represents an image that may be stored in (cloud) storage. @@ -7,7 +8,7 @@ export interface Image { /** * Storage location of the image. */ - storage: ImageStorage + storage: Storage /** * Filename of the image (without the directory). @@ -37,14 +38,6 @@ export interface Image { tags: string[] } -/** - * ImageStorage provides the storage location of an {@link Image}. - */ -export interface ImageStorage { - provider: string - path: string -} - /** * ImageDimensions provides the width and height of an {@link Image}. */ diff --git a/packages/media-entity/src/storage.ts b/packages/media-entity/src/storage.ts new file mode 100644 index 0000000..39d8a81 --- /dev/null +++ b/packages/media-entity/src/storage.ts @@ -0,0 +1,7 @@ +/** + * Storage provides the storage location of a file. + */ +export interface Storage { + provider: string + path: string +}