Skip to content

Commit 5c7b9e9

Browse files
Meng LiMeng Li
authored andcommitted
add more typee
1 parent 9966fd9 commit 5c7b9e9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare namespace obs {
1010

1111
export type SourceType = 'Image' | 'MediaSource';
1212

13-
export type TransitionType = 'cut_transition';
13+
export type TransitionType = 'cut_transition' | 'fade_transition' | 'swipe_transition' | 'slide_transition';
1414

1515
export interface Scene {
1616
id: string;
@@ -50,6 +50,7 @@ declare namespace obs {
5050
shutdown(): void;
5151
addScene(sceneId: string): string;
5252
addSource(sceneId: string, sourceId: string, sourceType: SourceType, sourceUrl: string): void;
53+
restartSource(sceneId: string, sourceId: string);
5354
switchToScene(sceneId: string, transitionType: TransitionType, transitionMs: number): void;
5455
getScenes(): Scene[];
5556
}

0 commit comments

Comments
 (0)