mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-11 09:07:12 -05:00
updated openapi generator
This commit is contained in:
@@ -30,8 +30,8 @@ export interface IngredientString {
|
||||
/**
|
||||
* Check if a given object implements the IngredientString interface.
|
||||
*/
|
||||
export function instanceOfIngredientString(value: object): boolean {
|
||||
if (!('text' in value)) return false;
|
||||
export function instanceOfIngredientString(value: object): value is IngredientString {
|
||||
if (!('text' in value) || value['text'] === undefined) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user