Skip to content

Commit 6222c4e

Browse files
committed
use for Props
1 parent 1c64d21 commit 6222c4e

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

web/src/lib/components/workflows/SchemaFormFields.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import { Field, Input, MultiSelect, Select, Switch, Text, type SelectItem } from '@immich/ui';
44
import WorkflowPickerField from './WorkflowPickerField.svelte';
55
6-
interface Props {
6+
type Props = {
77
schema: object | null;
88
config: Record<string, unknown>;
99
configKey?: string;
10-
}
10+
};
1111
1212
let { schema = null, config = $bindable({}), configKey }: Props = $props();
1313

web/src/lib/components/workflows/WorkflowCardConnector.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script lang="ts">
2-
interface Props {
2+
type Props = {
33
animated?: boolean;
4-
}
4+
};
55
66
let { animated = true }: Props = $props();
77
</script>

web/src/lib/components/workflows/WorkflowJsonEditor.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
import { mdiCodeJson } from '@mdi/js';
66
import { JSONEditor, Mode, type Content, type OnChangeStatus } from 'svelte-jsoneditor';
77
8-
interface Props {
8+
type Props = {
99
jsonContent: WorkflowPayload;
1010
onApply: () => void;
1111
onContentChange: (content: WorkflowPayload) => void;
12-
}
12+
};
1313
1414
let { jsonContent, onApply, onContentChange }: Props = $props();
1515

web/src/lib/components/workflows/WorkflowPickerField.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
import { mdiClose, mdiPlus } from '@mdi/js';
99
import { t } from 'svelte-i18n';
1010
11-
interface Props {
11+
type Props = {
1212
component: ComponentConfig;
1313
configKey: string;
1414
value: string | string[] | undefined;
1515
onchange: (value: string | string[]) => void;
16-
}
16+
};
1717
1818
let { component, configKey, value = $bindable(), onchange }: Props = $props();
1919

web/src/lib/components/workflows/WorkflowSummary.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
import { mdiClose, mdiFilterOutline, mdiFlashOutline, mdiPlayCircleOutline, mdiViewDashboardOutline } from '@mdi/js';
1010
import { t } from 'svelte-i18n';
1111
12-
interface Props {
12+
type Props = {
1313
trigger: PluginTriggerResponseDto;
1414
filters: PluginFilterResponseDto[];
1515
actions: PluginActionResponseDto[];
16-
}
16+
};
1717
1818
let { trigger, filters, actions }: Props = $props();
1919

web/src/lib/components/workflows/WorkflowTriggerCard.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import { mdiFaceRecognition, mdiFileUploadOutline, mdiLightningBolt } from '@mdi/js';
55
import { t } from 'svelte-i18n';
66
7-
interface Props {
7+
type Props = {
88
trigger: PluginTriggerResponseDto;
99
selected: boolean;
1010
onclick: () => void;
11-
}
11+
};
1212
1313
let { trigger, selected, onclick }: Props = $props();
1414

web/src/lib/modals/AddWorkflowStepModal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
import { mdiFilterOutline, mdiPlayCircleOutline } from '@mdi/js';
55
import { t } from 'svelte-i18n';
66
7-
interface Props {
7+
type Props = {
88
filters: PluginFilterResponseDto[];
99
actions: PluginActionResponseDto[];
1010
onClose: (result?: { type: 'filter' | 'action'; item: PluginFilterResponseDto | PluginActionResponseDto }) => void;
1111
type?: 'filter' | 'action';
12-
}
12+
};
1313
1414
let { filters, actions, onClose, type }: Props = $props();
1515

web/src/lib/modals/PeoplePickerModal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import { onMount } from 'svelte';
99
import { t } from 'svelte-i18n';
1010
11-
interface Props {
11+
type Props = {
1212
multiple?: boolean;
1313
excludedIds?: string[];
1414
onClose: (people?: PersonResponseDto[]) => void;
15-
}
15+
};
1616
1717
let { multiple = false, excludedIds = [], onClose }: Props = $props();
1818

web/src/routes/(user)/utilities/workflows/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@
3737
import { SvelteMap, SvelteSet } from 'svelte/reactivity';
3838
import type { PageData } from './$types';
3939
40-
interface Props {
40+
type Props = {
4141
data: PageData;
42-
}
42+
};
4343
4444
let { data }: Props = $props();
4545

web/src/routes/(user)/utilities/workflows/[workflowId]/+page.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
import { t } from 'svelte-i18n';
5757
import type { PageData } from './$types';
5858
59-
interface Props {
59+
type Props = {
6060
data: PageData;
61-
}
61+
};
6262
6363
let { data }: Props = $props();
6464

0 commit comments

Comments
 (0)