Explorar o código

Make _id property optional

Tatiana Inama %!s(int64=7) %!d(string=hai) anos
pai
achega
edb8383502
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      recipes/src/types/recipes.ts

+ 1 - 2
recipes/src/types/recipes.ts

@@ -36,7 +36,6 @@ export const _subRecipe: SubRecipe = {
 };
 
 export const _recipe: Recipe = {
-  _id: '',
   author: {
     name: '',
     website: '',
@@ -108,7 +107,7 @@ export interface Suggestion {
 }
 
 export default interface Recipe {
-  _id: string,
+  _id?: string,
   author: Author,
   details: Details,
   ingredients: SubRecipe[],