init: basic structure
This commit is contained in:
3
src/types/index.ts
Normal file
3
src/types/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { type ViteSSGContext } from 'vite-ssg'
|
||||
|
||||
export type UserModule = (ctx: ViteSSGContext) => void
|
||||
28
src/types/recipe.ts
Normal file
28
src/types/recipe.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
export interface RecipeItem {
|
||||
/**
|
||||
* 菜名
|
||||
*/
|
||||
name: string
|
||||
/**
|
||||
* 链接
|
||||
*/
|
||||
link: string
|
||||
/**
|
||||
* 材料
|
||||
*/
|
||||
stuff: string[]
|
||||
/**
|
||||
* 标签
|
||||
*/
|
||||
tags: string[]
|
||||
/**
|
||||
* 方式
|
||||
*/
|
||||
methods: string[]
|
||||
/**
|
||||
* 工具
|
||||
*/
|
||||
tools: string[]
|
||||
}
|
||||
|
||||
export type Recipe = RecipeItem[]
|
||||
Reference in New Issue
Block a user