refactor: fix type errors

This commit is contained in:
Elias Schneider
2025-04-20 18:54:45 +02:00
parent debef9a66b
commit 2597907578
10 changed files with 17 additions and 11 deletions

View File

@@ -1,9 +1,10 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils/style.js";
import type { ClassValue } from "svelte/elements";
type $$Props = CommandPrimitive.EmptyProps;
let className: string | undefined | null = undefined;
let className: ClassValue | undefined | null = undefined;
export { className as class };
</script>

View File

@@ -1,9 +1,10 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils/style.js";
import type { ClassValue } from "svelte/elements";
type $$Props = CommandPrimitive.GroupProps;
let className: string | undefined | null = undefined;
let className: ClassValue | undefined | null = undefined;
export { className as class };
</script>

View File

@@ -1,12 +1,13 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils/style.js";
import type { ClassValue } from "svelte/elements";
type $$Props = CommandPrimitive.ItemProps;
export let asChild = false;
let className: string | undefined | null = undefined;
let className: ClassValue | undefined | null = undefined;
export { className as class };
</script>

View File

@@ -1,9 +1,10 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils/style.js";
import type { ClassValue } from "svelte/elements";
type $$Props = CommandPrimitive.ListProps;
let className: string | undefined | null = undefined;
let className: ClassValue | undefined | null = undefined;
export { className as class };
</script>

View File

@@ -1,9 +1,10 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils/style.js";
import type { ClassValue } from "svelte/elements";
type $$Props = CommandPrimitive.SeparatorProps;
let className: string | undefined | null = undefined;
let className: ClassValue | undefined | null = undefined;
export { className as class };
</script>

View File

@@ -1,10 +1,10 @@
<script lang="ts">
import type { HTMLAttributes } from "svelte/elements";
import type { ClassValue, HTMLAttributes } from "svelte/elements";
import { cn } from "$lib/utils/style.js";
type $$Props = HTMLAttributes<HTMLSpanElement>;
let className: string | undefined | null = undefined;
let className: ClassValue | undefined | null = undefined;
export { className as class };
</script>

View File

@@ -1,12 +1,13 @@
<script lang="ts">
import { Command as CommandPrimitive } from "cmdk-sv";
import { cn } from "$lib/utils/style.js";
import type { ClassValue } from "svelte/elements";
type $$Props = CommandPrimitive.CommandProps;
export let value: $$Props["value"] = undefined;
let className: string | undefined | null = undefined;
let className: ClassValue | undefined | null = undefined;
export { className as class };
</script>

View File

@@ -13,7 +13,7 @@ export type User = {
customClaims: CustomClaim[];
locale?: Locale;
ldapId?: string;
disabled: boolean;
disabled?: boolean;
};
export type UserCreate = Omit<User, 'id' | 'customClaims' | 'ldapId' | 'userGroups'>;

View File

@@ -20,7 +20,7 @@
async function requestEmail() {
isLoading = true;
await userService
.requestOneTimeAccessEmail(email, data.redirect)
.requestOneTimeAccessEmailAsUnauthenticatedUser(email, data.redirect)
.then(() => (success = true))
.catch((e) => (error = e.response?.data.error || m.an_unknown_error_occurred()));

View File

@@ -1,7 +1,7 @@
import { ACCESS_TOKEN_COOKIE_NAME } from '$lib/constants';
import AuditLogService from '$lib/services/audit-log-service';
import type { SearchPaginationSortRequest } from '$lib/types/pagination.type';
import type { PageServerLoad } from '../../global-audit-log/$types';
import type { PageServerLoad } from './$types';
export const load: PageServerLoad = async ({ cookies }) => {
const auditLogService = new AuditLogService(cookies.get(ACCESS_TOKEN_COOKIE_NAME));