Skip to content

Commit 62b22fe

Browse files
Refactor UnityInstance type declaration to include Quit method for improved functionality
1 parent b287415 commit 62b22fe

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

module/source/types/unity-instance.d.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,13 @@ import { UnityModule } from "./unity-module";
55
/**
66
* Type declaration for the UnityInstance.
77
*/
8-
type UnityInstance = Pick<
9-
UnityModule,
10-
"SendMessage" | "SetFullscreen" | "Quit"
11-
> & {
8+
type UnityInstance = Pick<UnityModule, "SendMessage" | "SetFullscreen"> & {
9+
/**
10+
* Quits the Unity WebGL application and removes it from the memory.
11+
* @returns a promise which resolves when the application did quit.
12+
*/
13+
Quit(): Promise<void>;
14+
1215
/**
1316
* The internal Unity Module.
1417
*/

0 commit comments

Comments
 (0)