Update type definitions in project-sequence-templates.ts
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
import type { ProjectDialogue } from "../dialogues/project-dialogues";
|
import type { ProjectDialogue } from "../dialogues/project-dialogues";
|
||||||
import type { InteractableEntity, TriggerVolumeEntity } from "../entities/entity-instances";
|
import type {
|
||||||
|
InteractableEntity,
|
||||||
|
TriggerVolumeEntity
|
||||||
|
} from "../entities/entity-instances";
|
||||||
import {
|
import {
|
||||||
createProjectScheduleEffectFromOption,
|
createProjectScheduleEffectFromOption,
|
||||||
listProjectScheduleEffectOptions,
|
listProjectScheduleEffectOptions,
|
||||||
@@ -8,8 +11,9 @@ import {
|
|||||||
|
|
||||||
import { createProjectSequence, type ProjectSequence } from "./project-sequences";
|
import { createProjectSequence, type ProjectSequence } from "./project-sequences";
|
||||||
|
|
||||||
type SequenceInteractionSource = Pick<InteractableEntity, "id" | "kind" | "name"> &
|
type SequenceInteractionSource =
|
||||||
Partial<Pick<TriggerVolumeEntity, "name">>;
|
| Pick<InteractableEntity, "id" | "kind" | "name">
|
||||||
|
| Pick<TriggerVolumeEntity, "id" | "kind" | "name">;
|
||||||
|
|
||||||
function formatSequenceSourceLabel(source: SequenceInteractionSource): string {
|
function formatSequenceSourceLabel(source: SequenceInteractionSource): string {
|
||||||
const normalizedName = source.name?.trim() ?? "";
|
const normalizedName = source.name?.trim() ?? "";
|
||||||
|
|||||||
Reference in New Issue
Block a user