Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions Premiere/15.0/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2068,6 +2068,7 @@ declare class PrProduction {

type ApplicationEvent =
| "onSourceClipSelectedInProjectPanel"
| "onItemsAddedToProjectSuccess"
| "onSequenceActivated"
| "onActiveSequenceChanged"
| "onActiveSequenceSelectionChanged"
Expand All @@ -2077,6 +2078,19 @@ type ApplicationEvent =
| "onProjectChanged"
| "onProjectEndDrop"

type ApplicationEventHandler = {
onSourceClipSelectedInProjectPanel: (items: ProjectItem[]) => void;
onItemsAddedToProjectSuccess: () => void;
onSequenceActivated: () => void;
onActiveSequenceChanged: () => void;
onActiveSequenceSelectionChanged: () => void;
onActiveSequenceTrackItemAdded: (track: Track, trackItem: TrackItem) => void;
onActiveSequenceTrackItemRemoved: (track: Track, trackItem: TrackItem) => void;
onActiveSequenceStructureChanged: () => void;
onProjectChanged: (documentID: string) => void;
onProjectEndDrop: () => void;
};

/**
*
*/
Expand Down Expand Up @@ -2164,7 +2178,7 @@ declare class Application {
/**
*
*/
bind(eventName: ApplicationEvent, function_: Function): void
bind<T extends ApplicationEvent>(eventName: T, function_: ApplicationEventHandler[T]): void;

/**
*
Expand Down Expand Up @@ -2296,7 +2310,7 @@ declare class Application {
/**
*
*/
unbind(eventName: string): void
unbind(eventName: ApplicationEvent): void

/**
*
Expand Down