Add a function to get all photo albums
This commit is contained in:
27
astro/src/types/photos/album.d.ts
vendored
Normal file
27
astro/src/types/photos/album.d.ts
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
type PhotoAlbum = {
|
||||
title: string;
|
||||
url: string;
|
||||
description: string | null;
|
||||
|
||||
thumbnail: PhotoProps;
|
||||
|
||||
startDate: string;
|
||||
endDate: string | null;
|
||||
location: string | null;
|
||||
|
||||
category: PhotoAlbumCategory;
|
||||
photos: PhotoAlbumPhoto[];
|
||||
|
||||
lastModified: Date;
|
||||
}
|
||||
|
||||
type PhotoAlbumCategory = {
|
||||
title: string;
|
||||
url: string;
|
||||
thumbnail: PhotoProps;
|
||||
}
|
||||
|
||||
type PhotoAlbumPhoto = {
|
||||
photo: PhotoProps;
|
||||
text: string | null;
|
||||
}
|
||||
3
astro/src/types/photos/category.d.ts
vendored
Normal file
3
astro/src/types/photos/category.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
type PhotoCategory = {
|
||||
|
||||
}
|
||||
3
astro/src/types/photos/photo.d.ts
vendored
Normal file
3
astro/src/types/photos/photo.d.ts
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
type PhotoPhoto = {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user