mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-22 01:11:41 +03:00
refactor: fix type errors
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
import { cn } from '$lib/utils/style.js';
|
import { cn } from '$lib/utils/style.js';
|
||||||
import { Button as ButtonPrimitive } from 'bits-ui';
|
import { Button as ButtonPrimitive } from 'bits-ui';
|
||||||
import LoaderCircle from 'lucide-svelte/icons/loader-circle';
|
import LoaderCircle from 'lucide-svelte/icons/loader-circle';
|
||||||
|
import type { ClassNameValue } from 'tailwind-merge';
|
||||||
import { type Events, type Props, buttonVariants } from './index.js';
|
import { type Events, type Props, buttonVariants } from './index.js';
|
||||||
|
|
||||||
type $$Props = Props;
|
type $$Props = Props;
|
||||||
@@ -19,7 +20,7 @@
|
|||||||
<ButtonPrimitive.Root
|
<ButtonPrimitive.Root
|
||||||
{builders}
|
{builders}
|
||||||
disabled={isLoading || disabled}
|
disabled={isLoading || disabled}
|
||||||
class={cn(buttonVariants({ variant, size, className }))}
|
class={cn(buttonVariants({ variant, size, className: className as ClassNameValue }))}
|
||||||
type="button"
|
type="button"
|
||||||
{...$$restProps}
|
{...$$restProps}
|
||||||
on:click
|
on:click
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
import type { HTMLAttributes } from 'svelte/elements';
|
import type { HTMLAttributes } from 'svelte/elements';
|
||||||
import { cn } from '$lib/utils/style.js';
|
import { cn } from '$lib/utils/style.js';
|
||||||
|
|
||||||
type $$Props = HTMLAttributes<HTMLSpanElement>;
|
type $$Props = HTMLAttributes<HTMLSpanElement> & { class?: string | null | undefined };
|
||||||
let className: string | undefined | null = undefined;
|
let className: string | undefined | null = undefined;
|
||||||
export { className as class };
|
export { className as class };
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ export type User = {
|
|||||||
ldapId?: string;
|
ldapId?: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UserCreate = Omit<User, 'id' | 'customClaims' | 'ldapId'>;
|
export type UserCreate = Omit<User, 'id' | 'customClaims' | 'ldapId' | 'userGroups'>;
|
||||||
|
|||||||
Reference in New Issue
Block a user