fixes de ts

This commit is contained in:
2025-12-19 20:09:40 -03:00
parent 56a4092a1c
commit e58985b1e2
2 changed files with 2 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
<script>
<script lang="ts">
import UserCard from '@/components/UserCard.svelte';
let { data } = $props();

View File

@@ -1,9 +1,8 @@
import { busquedaUsuarios } from '@/hooks/busquedaUsuarios';
import type { PageProps } from '../$types';
import { error } from '@sveltejs/kit';
import type { UserResponseDto } from '../../../types';
export async function load({ params }: PageProps) {
export async function load({ params }) {
let usuarios: UserResponseDto[] = await busquedaUsuarios(params.user);
if (usuarios == null) {
return error(500, 'No se pudo alcanzar el servidor.');