Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/lowmess/lameass.recipes. A recipe site, but without the ads and 3,000 word essays lameass.recipes
nextjs sanity-io theme-ui typescript
Something went wrong. Try again.
1.0 kB · 57 lines
TypeScript
at develop
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758/* eslint-disable import/exports-last */export type RecipeSection = { _key: string title: string steps: string[]}
export type Category = { _id: string title: string emoji: string slug: string recipes: Recipe[]}
export type Tag = { _id: string title: string slug: string recipes: Recipe[]}
export interface Recipe { _id: string slug: string title: string description?: string category?: Omit<Category, 'recipes'> tags?: Omit<Tag, 'recipes'>[] prepTime?: number cookTime?: number yieldAmount?: string yieldType?: 'servings' | 'amount' equipment?: string[] ingredients?: string[] sections?: RecipeSection[] notes?: string similarRecipes?: Recipe[] searchTerms?: string}
type MealRecipe = Pick<Recipe, '_id' | 'title' | 'slug'>
export interface Meal { _id: string title: string slug: string description?: string emojis?: string[] tags?: Tag[] prepTime?: number cookTime?: number yieldAmount?: string recipes: MealRecipe[] equipment?: string[] sections?: RecipeSection[]}