Co-authored-by: Jan Kaifer <jan@kaifer.cz>
This commit is contained in:
tka5 2023-03-21 00:45:45 +09:00 committed by GitHub
parent 8771a5613e
commit fd0e81342f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,9 @@ export const getAllPostsWithSlug = async () => {
return data.objects
}
export const getAllPostsForHome = async (preview: boolean): Promise<Post[]> => {
export const getAllPostsForHome = async (
preview: boolean
): Promise<PostType[]> => {
const params = {
query: {
type: 'posts',