mirror of
				https://github.com/mealie-recipes/mealie.git
				synced 2025-10-31 02:03:35 -04:00 
			
		
		
		
	Consolidate frontend types (#1245)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							6a88a59981
						
					
				
				
					commit
					479900e912
				
			| @@ -4,7 +4,9 @@ import { | ||||
|   ShoppingListCreate, | ||||
|   ShoppingListItemCreate, | ||||
|   ShoppingListItemOut, | ||||
|   ShoppingListItemUpdate, | ||||
|   ShoppingListOut, | ||||
|   ShoppingListUpdate, | ||||
| } from "~/types/api-types/group"; | ||||
|  | ||||
| const prefix = "/api"; | ||||
| @@ -18,7 +20,7 @@ const routes = { | ||||
|   shoppingListItemsId: (id: string) => `${prefix}/groups/shopping/items/${id}`, | ||||
| }; | ||||
|  | ||||
| export class ShoppingListsApi extends BaseCRUDAPI<ShoppingListOut, ShoppingListCreate> { | ||||
| export class ShoppingListsApi extends BaseCRUDAPI<ShoppingListCreate, ShoppingListOut, ShoppingListUpdate> { | ||||
|   baseRoute = routes.shoppingLists; | ||||
|   itemRoute = routes.shoppingListsId; | ||||
|  | ||||
| @@ -31,7 +33,7 @@ export class ShoppingListsApi extends BaseCRUDAPI<ShoppingListOut, ShoppingListC | ||||
|   } | ||||
| } | ||||
|  | ||||
| export class ShoppingListItemsApi extends BaseCRUDAPI<ShoppingListItemOut, ShoppingListItemCreate> { | ||||
| export class ShoppingListItemsApi extends BaseCRUDAPI<ShoppingListItemCreate, ShoppingListItemOut, ShoppingListItemUpdate> { | ||||
|   baseRoute = routes.shoppingListItems; | ||||
|   itemRoute = routes.shoppingListItemsId; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user