Update type definitions in project-sequence-templates.ts

This commit is contained in:
2026-04-15 00:08:09 +02:00
parent 06f3db4cf5
commit 4755cfdd0d

View File

@@ -1,5 +1,8 @@
import type { ProjectDialogue } from "../dialogues/project-dialogues";
import type { InteractableEntity, TriggerVolumeEntity } from "../entities/entity-instances";
import type {
InteractableEntity,
TriggerVolumeEntity
} from "../entities/entity-instances";
import {
createProjectScheduleEffectFromOption,
listProjectScheduleEffectOptions,
@@ -8,8 +11,9 @@ import {
import { createProjectSequence, type ProjectSequence } from "./project-sequences";
type SequenceInteractionSource = Pick<InteractableEntity, "id" | "kind" | "name"> &
Partial<Pick<TriggerVolumeEntity, "name">>;
type SequenceInteractionSource =
| Pick<InteractableEntity, "id" | "kind" | "name">
| Pick<TriggerVolumeEntity, "id" | "kind" | "name">;
function formatSequenceSourceLabel(source: SequenceInteractionSource): string {
const normalizedName = source.name?.trim() ?? "";