Cambios de nombres de variables y esquema
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import { url } from 'inspector';
|
||||
import { z } from 'zod';
|
||||
|
||||
export type InventoryTable = z.infer<typeof product>;
|
||||
export type InventoryTable = z.infer<typeof seeProduct>;
|
||||
export type EditInventory = z.infer<typeof editInventory>;
|
||||
export type ProductApiResponseSchema = z.infer<typeof productApiResponseSchema>;
|
||||
export type allProducts = z.infer<typeof productDetails>;
|
||||
@@ -17,12 +17,10 @@ export const product = z.object({
|
||||
title: z.string(),
|
||||
description: z.string(),
|
||||
address: z.string(),
|
||||
// category: z.string(),
|
||||
stock: z.number(),
|
||||
price: z.string(),
|
||||
urlImg: z.custom<FileList | undefined>().optional(),
|
||||
gallery: z.array(z.string()).optional(),
|
||||
// urlImg: z.string(),
|
||||
status: z.string(),
|
||||
userId: z.number().optional()
|
||||
})
|
||||
@@ -98,7 +96,7 @@ export const test = z.object({
|
||||
|
||||
export const productMutate = z.object({
|
||||
message: z.string(),
|
||||
data: product,
|
||||
data: seeProduct,
|
||||
})
|
||||
|
||||
export const getProduct = z.object({
|
||||
|
||||
Reference in New Issue
Block a user