15 lines
369 B
TypeScript
15 lines
369 B
TypeScript
export interface ParsedIngredient {
|
|
rawName: string;
|
|
quantity: number;
|
|
unit: string;
|
|
note: string | null;
|
|
alternatives: string[];
|
|
}
|
|
export interface ParsedRecipe {
|
|
name: string;
|
|
description: string;
|
|
instructions: string;
|
|
ingredients: ParsedIngredient[];
|
|
}
|
|
export declare function parseRecipeMarkdown(markdown: string): ParsedRecipe;
|