We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5452365 commit 6b50e42Copy full SHA for 6b50e42
source/event_hub.ts
@@ -59,16 +59,17 @@ export interface UpdateEventPayload extends BaseEventPayload {
59
data: UpdateEventData;
60
}
61
62
-export interface UnknownEventPayload extends BaseEventPayload {
63
- topic: unknown;
64
- data: unknown;
65
-}
66
-
+/**
+ * A union type of the different payload types with the
+ * `topic:` property as a type discriminator.
+ * Supports the topics `ftrack.action.discover`, `ftrack.action.launch`
+ * and `ftrack.update`. Please add a GitHub issue for any missing core topics.
67
+ * @interface EventPayload
68
+ */
69
export type EventPayload =
70
| ActionLaunchEventPayload
71
| ActionDiscoverEventPayload
- | UpdateEventPayload
- | UnknownEventPayload;
72
+ | UpdateEventPayload;
73
74
export interface EventSource {
75
clientToken: string;
0 commit comments