Skip to content

Commit

Permalink
Export media attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
n2o committed Sep 27, 2024
1 parent 7b8bfb2 commit 14624af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@schnaq/strapi4-utils",
"version": "1.2.6",
"version": "1.2.7",
"description": "Utility functions for working with Strapi v4",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down
4 changes: 2 additions & 2 deletions src/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export type ImageFormat = {
url: string
}

type ImageBaseAttributes = {
export type MediaAttributes = {
name: string
alternativeText: string | null
caption: string | null
Expand All @@ -95,7 +95,7 @@ type ImageBaseAttributes = {
}

export type Image = StrapiBaseProps &
ImageBaseAttributes & {
MediaAttributes & {
id: StrapiID
}

Expand Down

0 comments on commit 14624af

Please sign in to comment.