194 lines
25 KiB
Text
194 lines
25 KiB
Text
src/app/api/debug-registro/route.ts(86,27): error TS2345: Argument of type '"Dados pessoais"' is not assignable to parameter of type 'never'.
|
|
src/app/api/debug-registro/route.ts(90,27): error TS2345: Argument of type '"Endereço"' is not assignable to parameter of type 'never'.
|
|
src/app/api/debug-registro/route.ts(94,27): error TS2345: Argument of type '"Empresa"' is not assignable to parameter of type 'never'.
|
|
src/app/api/empresas/route.ts(41,11): error TS2451: Cannot redeclare block-scoped variable 'response'.
|
|
src/app/api/empresas/route.ts(46,27): error TS2304: Cannot find name 'apiKey'.
|
|
src/app/api/empresas/route.ts(67,11): error TS2451: Cannot redeclare block-scoped variable 'response'.
|
|
src/app/api/empresas/route.ts(69,37): error TS2339: Property 'total' does not exist on type 'Response'.
|
|
src/app/api/empresas/route.ts(72,27): error TS2339: Property 'documents' does not exist on type 'Response'.
|
|
src/app/api/empresas/route.ts(73,23): error TS2339: Property 'total' does not exist on type 'Response'.
|
|
src/app/api/gestao-usuarios/route.ts(33,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
|
|
src/app/api/gestao-usuarios/route.ts(38,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
|
|
src/app/api/relacionar-categorias/route.ts(83,13): error TS2322: Type 'string' is not assignable to type 'null'.
|
|
src/app/api/relacionar-categorias/route.ts(92,9): error TS2322: Type 'string' is not assignable to type 'null'.
|
|
src/app/api/relacionar-categorias/route.ts(112,25): error TS2345: Argument of type '{ produtoId: any; descricao: any; categoria: string; sucesso: boolean; }' is not assignable to parameter of type 'never'.
|
|
src/app/api/relacionar-categorias/route.ts(128,25): error TS2345: Argument of type '{ produtoId: any; descricao: any; categoria: string; sucesso: boolean; erro: string; }' is not assignable to parameter of type 'never'.
|
|
src/app/api/subcategorias/route.ts(40,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
|
|
src/app/api/usuarios/route.ts(45,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
|
|
src/app/api/usuarios/route.ts(46,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
|
|
src/app/api/usuarios/route.ts(50,22): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
|
|
src/app/api/usuarios/route.ts(52,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
|
|
src/app/api/usuarios/route.ts(53,20): error TS2345: Argument of type 'string' is not assignable to parameter of type 'never'.
|
|
src/app/api/webhook/pagamento/route.ts(53,19): error TS2339: Property 'pedidos' does not exist on type '{ success: boolean; data: PagamentoData | null; }'.
|
|
src/app/api/webhook/pagamento/route.ts(76,58): error TS2339: Property 'pedidos' does not exist on type '{ success: boolean; data: PagamentoData | null; }'.
|
|
src/app/api/webhook/pagamento/route.ts(77,53): error TS2339: Property 'pedidos' does not exist on type '{ success: boolean; data: PagamentoData | null; }'.
|
|
src/app/api/webhook/pagamento/route.ts(85,19): error TS2339: Property 'faturas' does not exist on type '{ success: boolean; data: PagamentoData | null; }'.
|
|
src/app/api/webhook/pagamento/route.ts(104,64): error TS2339: Property 'faturas' does not exist on type '{ success: boolean; data: PagamentoData | null; }'.
|
|
src/app/api/webhook/pagamento/route.ts(105,53): error TS2339: Property 'faturas' does not exist on type '{ success: boolean; data: PagamentoData | null; }'.
|
|
src/app/dashboard/empresa-novo-updated/page.tsx(354,13): error TS2322: Type '{ empresas: any[]; loading: boolean; error: null; onEdit: (empresa: any) => void; onDelete: (id: string) => Promise<boolean>; onRefresh: () => Promise<void>; }' is not assignable to type 'IntrinsicAttributes & EmpresaListProps'.
|
|
Property 'onRefresh' does not exist on type 'IntrinsicAttributes & EmpresaListProps'.
|
|
src/app/dashboard/empresa-novo/page-clean.tsx(270,15): error TS2322: Type '{ empresas: any[]; loading: boolean; error: null; onEdit: (empresa: Document) => void; onDelete: (id: string) => Promise<boolean>; onRefresh: () => Promise<void>; }' is not assignable to type 'IntrinsicAttributes & EmpresaListProps'.
|
|
Property 'onRefresh' does not exist on type 'IntrinsicAttributes & EmpresaListProps'.
|
|
src/app/dashboard/empresa-novo/page-new.tsx(270,15): error TS2322: Type '{ empresas: any[]; loading: boolean; error: null; onEdit: (empresa: Document) => void; onDelete: (id: string) => Promise<boolean>; onRefresh: () => Promise<void>; }' is not assignable to type 'IntrinsicAttributes & EmpresaListProps'.
|
|
Property 'onRefresh' does not exist on type 'IntrinsicAttributes & EmpresaListProps'.
|
|
src/app/dashboard/page.tsx(98,13): error TS1117: An object literal cannot have multiple properties with the same name.
|
|
src/app/dashboard/page.tsx(404,42): error TS2367: This comparison appears to be unintentional because the types 'UserRole.OWNER | UserRole.EMPLOYEE | UserRole.DELIVERY | null' and 'UserRole.ADMIN' have no overlap.
|
|
src/app/debug-dados/page.tsx(67,43): error TS2339: Property 'enderecos' does not exist on type 'never'.
|
|
src/app/debug-dados/page.tsx(68,42): error TS2339: Property 'empresas' does not exist on type 'never'.
|
|
src/app/debug-dados/page.tsx(70,44): error TS2339: Property 'enderecos' does not exist on type 'never'.
|
|
src/app/debug-dados/page.tsx(72,28): error TS2339: Property 'enderecos' does not exist on type 'never'.
|
|
src/app/debug-dados/page.tsx(87,43): error TS2339: Property 'empresas' does not exist on type 'never'.
|
|
src/app/debug-dados/page.tsx(89,28): error TS2339: Property 'empresas' does not exist on type 'never'.
|
|
src/app/debug-produtos-teste/page.tsx(16,61): error TS2554: Expected 0-2 arguments, but got 3.
|
|
src/app/pagamento/mercadopago/falha/page.tsx(35,17): error TS2345: Argument of type '{ email: string; }' is not assignable to parameter of type 'SetStateAction<User<Preferences> | null>'.
|
|
Type '{ email: string; }' is missing the following properties from type 'User<Preferences>': $id, $createdAt, $updatedAt, name, and 11 more.
|
|
src/app/pagamento/mercadopago/sucesso/page.tsx(66,17): error TS2345: Argument of type '{ email: string; }' is not assignable to parameter of type 'SetStateAction<User<Preferences> | null>'.
|
|
Type '{ email: string; }' is missing the following properties from type 'User<Preferences>': $id, $createdAt, $updatedAt, name, and 11 more.
|
|
src/app/pagamento/mercadopago/sucesso/page_novo.tsx(68,17): error TS2345: Argument of type '{ email: string; }' is not assignable to parameter of type 'SetStateAction<User<Preferences> | null>'.
|
|
Type '{ email: string; }' is missing the following properties from type 'User<Preferences>': $id, $createdAt, $updatedAt, name, and 11 more.
|
|
src/app/pagamentos/page.tsx(168,13): error TS2322: Type '(formData: PagamentoData) => Promise<boolean>' is not assignable to type '(data: PagamentoData) => Promise<boolean>'.
|
|
Types of parameters 'formData' and 'data' are incompatible.
|
|
Type 'PagamentoData' is not assignable to type 'import("C:/dev/saveinmed/frontend/src/services/pagamentoService").PagamentoData'.
|
|
Types of property 'pedidos' are incompatible.
|
|
Type 'string' is not assignable to type 'string[]'.
|
|
src/app/pagamentos/page.tsx(170,13): error TS2322: Type 'Document | null' is not assignable to type 'PagamentoData | null | undefined'.
|
|
Type 'Document' is missing the following properties from type 'PagamentoData': pedidos, status, metodo, valor
|
|
src/components/CatalogoComCarrinho.tsx(57,34): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(106,39): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(114,36): error TS2339: Property 'descricao' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(121,36): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(122,49): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(122,81): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(123,39): error TS2339: Property 'laboratorio' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(124,49): error TS2339: Property 'laboratorio' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(126,36): error TS2339: Property 'categorias' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(127,49): error TS2339: Property 'categorias' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(128,39): error TS2339: Property 'categoria' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(129,49): error TS2339: Property 'categoria' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(136,64): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(136,108): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(188,48): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/CatalogoComCarrinho.tsx(193,43): error TS2339: Property 'descricao' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutoForm.tsx(24,44): error TS2339: Property 'descricao' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(41,77): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(51,19): error TS2345: Argument of type 'Document' is not assignable to parameter of type 'ProdutoCompleto'.
|
|
Type 'Document' is missing the following properties from type 'ProdutoCompleto': id, catalogo_id, nome, preco_venda, and 5 more.
|
|
src/components/CatalogoProdutosCompras.tsx(121,32): error TS2339: Property 'descricao' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(138,28): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(140,32): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(145,32): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(146,75): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(154,28): error TS2339: Property 'categorias' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(156,32): error TS2339: Property 'categorias' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(201,30): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(201,45): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/CatalogoProdutosCompras.tsx(205,50): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/CategoriaForm.tsx(26,39): error TS2339: Property 'nome' does not exist on type 'Document'.
|
|
src/components/DebugRegistro.tsx(52,20): error TS2345: Argument of type '"Dados pessoais faltantes"' is not assignable to parameter of type 'never'.
|
|
src/components/DebugRegistro.tsx(60,20): error TS2345: Argument of type '"Endereços inválidos"' is not assignable to parameter of type 'never'.
|
|
src/components/DebugRegistro.tsx(68,20): error TS2345: Argument of type '"Empresas faltantes"' is not assignable to parameter of type 'never'.
|
|
src/components/DetalheProdutoModal.tsx(42,67): error TS2339: Property 'nome' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(46,22): error TS2339: Property 'descricao' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(51,55): error TS2339: Property 'descricao' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(83,24): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(92,39): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(154,22): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(154,46): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(160,28): error TS2339: Property 'laboratorios' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(173,22): error TS2339: Property 'categoria' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(179,35): error TS2339: Property 'categoria' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(179,68): error TS2339: Property 'categoria' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(179,93): error TS2339: Property 'categoria' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(185,22): error TS2339: Property 'subcategoria' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(191,35): error TS2339: Property 'subcategoria' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(191,71): error TS2339: Property 'subcategoria' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(191,99): error TS2339: Property 'subcategoria' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(197,22): error TS2339: Property 'estoque' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(203,27): error TS2339: Property 'estoque' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(204,27): error TS2339: Property 'estoque' does not exist on type 'Document'.
|
|
src/components/DetalheProdutoModal.tsx(206,28): error TS2339: Property 'estoque' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(19,5): error TS2353: Object literal may only specify known properties, and 'titulo' does not exist in type 'EnderecoData | (() => EnderecoData)'.
|
|
src/components/EnderecoForm.tsx(38,9): error TS2353: Object literal may only specify known properties, and 'titulo' does not exist in type 'SetStateAction<EnderecoData>'.
|
|
src/components/EnderecoForm.tsx(38,29): error TS2339: Property 'titulo' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(39,26): error TS2339: Property 'cep' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(40,33): error TS2339: Property 'logradouro' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(41,29): error TS2339: Property 'bairro' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(42,29): error TS2339: Property 'numero' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(43,34): error TS2339: Property 'complemento' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(44,29): error TS2339: Property 'cidade' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(45,29): error TS2339: Property 'estado' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(46,27): error TS2339: Property 'pais' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(47,38): error TS2339: Property 'latitude' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(48,39): error TS2339: Property 'longitude' does not exist on type 'Document'.
|
|
src/components/EnderecoForm.tsx(52,9): error TS2353: Object literal may only specify known properties, and 'titulo' does not exist in type 'SetStateAction<EnderecoData>'.
|
|
src/components/EnderecoForm.tsx(110,11): error TS2353: Object literal may only specify known properties, and 'titulo' does not exist in type 'SetStateAction<EnderecoData>'.
|
|
src/components/EnderecoForm.tsx(151,14): error TS2339: Property 'titulo' does not exist on type 'EnderecoData'.
|
|
src/components/EnderecoForm.tsx(156,5): error TS18048: 'formData.complemento' is possibly 'undefined'.
|
|
src/components/EnderecoForm.tsx(159,5): error TS18048: 'formData.pais' is possibly 'undefined'.
|
|
src/components/EnderecoForm.tsx(190,31): error TS2339: Property 'titulo' does not exist on type 'EnderecoData'.
|
|
src/components/EnderecoForm.tsx(340,31): error TS2339: Property 'latitude' does not exist on type 'EnderecoData'.
|
|
src/components/EnderecoForm.tsx(356,31): error TS2339: Property 'longitude' does not exist on type 'EnderecoData'.
|
|
src/components/FaturaForm.tsx(24,39): error TS2339: Property 'nome' does not exist on type 'Document'.
|
|
src/components/LaboratorioList.tsx(142,34): error TS2339: Property '$id' does not exist on type 'LaboratorioBff'.
|
|
src/components/LaboratorioList.tsx(147,30): error TS2339: Property '$id' does not exist on type 'LaboratorioBff'.
|
|
src/components/LaboratorioList.tsx(150,39): error TS2551: Property '$createdAt' does not exist on type 'LaboratorioBff'. Did you mean 'createdAt'?
|
|
src/components/LaboratorioList.tsx(160,59): error TS2339: Property '$id' does not exist on type 'LaboratorioBff'.
|
|
src/components/PagamentoList.tsx(58,20): error TS2339: Property 'valor' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(38,29): error TS2339: Property 'status' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(40,29): error TS2339: Property 'itens' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(41,30): error TS2339: Property 'qtdade' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(42,33): error TS2339: Property 'comprador' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(42,71): error TS2339: Property 'comprador' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(43,45): error TS2339: Property 'vendedor' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(43,69): error TS2339: Property 'vendedor' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(43,94): error TS2339: Property 'vendedor' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(43,131): error TS2339: Property 'vendedor' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(45,34): error TS2339: Property 'itens' does not exist on type 'Document'.
|
|
src/components/PedidoForm.tsx(56,41): error TS2339: Property 'listar' does not exist on type '{ buscarPorUserId: () => Promise<{ data: never[]; total: number; }>; criar: () => Promise<{ success: boolean; message: string; }>; atualizar: () => Promise<{ success: boolean; message: string; }>; buscarTodas: () => Promise<...>; buscarPorId: () => Promise<...>; }'.
|
|
src/components/Sidebar.tsx(10,9): error TS2503: Cannot find namespace 'JSX'.
|
|
src/components/TableActions.tsx(27,5): error TS2722: Cannot invoke an object which is possibly 'undefined'.
|
|
src/components/UsuarioForm.tsx(24,5): error TS2353: Object literal may only specify known properties, and ''auth-id-appwrite'' does not exist in type 'UsuarioFormData | (() => UsuarioFormData)'.
|
|
src/components/UsuarioForm.tsx(36,26): error TS2339: Property 'cpf' does not exist on type 'Document'.
|
|
src/components/UsuarioForm.tsx(37,9): error TS2353: Object literal may only specify known properties, and ''auth-id-appwrite'' does not exist in type 'SetStateAction<UsuarioFormData>'.
|
|
src/components/UsuarioForm.tsx(38,32): error TS2339: Property 'enderecos' does not exist on type 'Document'.
|
|
src/components/UsuarioForm.tsx(39,31): error TS2339: Property 'empresas' does not exist on type 'Document'.
|
|
src/components/UsuarioForm.tsx(40,28): error TS2339: Property 'email' does not exist on type 'Document'.
|
|
src/components/UsuarioForm.tsx(47,9): error TS2353: Object literal may only specify known properties, and ''auth-id-appwrite'' does not exist in type 'SetStateAction<UsuarioFormData>'.
|
|
src/components/UsuarioForm.tsx(72,11): error TS2353: Object literal may only specify known properties, and ''auth-id-appwrite'' does not exist in type 'SetStateAction<UsuarioFormData>'.
|
|
src/hooks/useCarrinhoCompras.ts(26,35): error TS2339: Property 'pmc' does not exist on type 'Document'.
|
|
src/hooks/useCarrinhoCompras.ts(26,50): error TS2339: Property 'preco_fabrica' does not exist on type 'Document'.
|
|
src/hooks/useCarrinhoCompras.ts(26,75): error TS2339: Property 'preco_nf' does not exist on type 'Document'.
|
|
src/hooks/useCarrinhos.ts(50,33): error TS2551: Property 'buscarPorUsuario' does not exist on type '{ listarPorUsuario: () => Promise<{ data: never[]; total: number; }>; buscarPorId: () => Promise<{ data: null; }>; criar: () => Promise<{ success: boolean; message: string; }>; atualizar: () => Promise<...>; excluir: () => Promise<...>; }'. Did you mean 'listarPorUsuario'?
|
|
src/hooks/useCarrinhos.ts(51,33): error TS2339: Property 'listar' does not exist on type '{ listarPorUsuario: () => Promise<{ data: never[]; total: number; }>; buscarPorId: () => Promise<{ data: null; }>; criar: () => Promise<{ success: boolean; message: string; }>; atualizar: () => Promise<...>; excluir: () => Promise<...>; }'.
|
|
src/hooks/useCarrinhos.ts(76,48): error TS2551: Property 'buscarPorUsuario' does not exist on type '{ listarPorUsuario: () => Promise<{ data: never[]; total: number; }>; buscarPorId: () => Promise<{ data: null; }>; criar: () => Promise<{ success: boolean; message: string; }>; atualizar: () => Promise<...>; excluir: () => Promise<...>; }'. Did you mean 'listarPorUsuario'?
|
|
src/hooks/useCarrinhos.ts(105,52): error TS2554: Expected 0 arguments, but got 1.
|
|
src/hooks/useCarrinhos.ts(111,27): error TS2339: Property 'error' does not exist on type '{ success: boolean; message: string; }'.
|
|
src/hooks/useCarrinhos.ts(127,56): error TS2554: Expected 0 arguments, but got 2.
|
|
src/hooks/useCarrinhos.ts(133,27): error TS2339: Property 'error' does not exist on type '{ success: boolean; message: string; }'.
|
|
src/hooks/useCarrinhos.ts(149,46): error TS2339: Property 'deletar' does not exist on type '{ listarPorUsuario: () => Promise<{ data: never[]; total: number; }>; buscarPorId: () => Promise<{ data: null; }>; criar: () => Promise<{ success: boolean; message: string; }>; atualizar: () => Promise<...>; excluir: () => Promise<...>; }'.
|
|
src/hooks/useCategorias.ts(53,23): error TS2345: Argument of type 'CategoriaData[]' is not assignable to parameter of type 'SetStateAction<Document[]>'.
|
|
Type 'CategoriaData[]' is not assignable to type 'Document[]'.
|
|
Type 'CategoriaData' is missing the following properties from type 'Document': $id, $sequence, $collectionId, $databaseId, and 3 more.
|
|
src/hooks/useCategorias.ts(82,25): error TS2345: Argument of type 'CategoriaData[]' is not assignable to parameter of type 'SetStateAction<Document[]>'.
|
|
Type 'CategoriaData[]' is not assignable to type 'Document[]'.
|
|
Type 'CategoriaData' is missing the following properties from type 'Document': $id, $sequence, $collectionId, $databaseId, and 3 more.
|
|
src/hooks/useEnderecos.ts(49,22): error TS2345: Argument of type 'EnderecoData[]' is not assignable to parameter of type 'SetStateAction<Document[]>'.
|
|
Type 'EnderecoData[]' is not assignable to type 'Document[]'.
|
|
Type 'EnderecoData' is missing the following properties from type 'Document': $sequence, $collectionId, $databaseId, $permissions
|
|
src/hooks/useEnderecos.ts(78,24): error TS2345: Argument of type 'EnderecoData[]' is not assignable to parameter of type 'SetStateAction<Document[]>'.
|
|
Type 'EnderecoData[]' is not assignable to type 'Document[]'.
|
|
Type 'EnderecoData' is missing the following properties from type 'Document': $sequence, $collectionId, $databaseId, $permissions
|
|
src/hooks/useFaturas.ts(41,20): error TS2345: Argument of type 'FaturaData[]' is not assignable to parameter of type 'SetStateAction<Document[]>'.
|
|
Type 'FaturaData[]' is not assignable to type 'Document[]'.
|
|
Type 'FaturaData' is missing the following properties from type 'Document': $id, $sequence, $collectionId, $databaseId, and 3 more.
|
|
src/hooks/useFaturas.ts(67,22): error TS2345: Argument of type 'FaturaData[]' is not assignable to parameter of type 'SetStateAction<Document[]>'.
|
|
Type 'FaturaData[]' is not assignable to type 'Document[]'.
|
|
Type 'FaturaData' is missing the following properties from type 'Document': $id, $sequence, $collectionId, $databaseId, and 3 more.
|
|
src/hooks/usePagamentos.ts(37,21): error TS2345: Argument of type 'PagamentoData[]' is not assignable to parameter of type 'SetStateAction<Document[]>'.
|
|
Type 'PagamentoData[]' is not assignable to type 'Document[]'.
|
|
Type 'PagamentoData' is missing the following properties from type 'Document': $id, $sequence, $collectionId, $databaseId, and 3 more.
|
|
src/hooks/usePagamentos.ts(59,23): error TS2345: Argument of type 'PagamentoData[]' is not assignable to parameter of type 'SetStateAction<Document[]>'.
|
|
Type 'PagamentoData[]' is not assignable to type 'Document[]'.
|
|
Type 'PagamentoData' is missing the following properties from type 'Document': $id, $sequence, $collectionId, $databaseId, and 3 more.
|
|
src/services/categoriaService.ts(16,67): error TS2322: Type 'never[]' is not assignable to type 'T'.
|
|
'T' could be instantiated with an arbitrary type which could be unrelated to 'never[]'.
|