Skip to content

Commit

Permalink
refactor(npm): rename ImageStorage to Storage
Browse files Browse the repository at this point in the history
  • Loading branch information
bounoable committed Oct 19, 2022
1 parent a865b79 commit 0f3dc40
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
11 changes: 2 additions & 9 deletions packages/media-entity/src/image.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -7,7 +8,7 @@ export interface Image<Languages extends string = string> {
/**
* Storage location of the image.
*/
storage: ImageStorage
storage: Storage

/**
* Filename of the image (without the directory).
Expand Down Expand Up @@ -37,14 +38,6 @@ export interface Image<Languages extends string = string> {
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}.
*/
Expand Down
7 changes: 7 additions & 0 deletions packages/media-entity/src/storage.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* Storage provides the storage location of a file.
*/
export interface Storage {
provider: string
path: string
}

0 comments on commit 0f3dc40

Please sign in to comment.