feat: add thumbhashes to images closes #6
This commit is contained in:
@@ -37,6 +37,7 @@ export type Recipe = {
|
||||
rating?: number;
|
||||
portion?: number;
|
||||
author?: string;
|
||||
thumbnail?: string;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -186,6 +187,7 @@ export function parseRecipe(original: string, id: string): Recipe {
|
||||
const crud = createCrud<Recipe>({
|
||||
prefix: `Recipes/`,
|
||||
parse: parseRecipe,
|
||||
hasThumbnails: true,
|
||||
});
|
||||
|
||||
export const getAllRecipes = crud.readAll;
|
||||
|
||||
Reference in New Issue
Block a user