Skip to content

Commit 9315e2c

Browse files
Make setIsLoaded property mandatory in UnityProvider type definition
1 parent f305e14 commit 9315e2c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,12 @@ type UnityProvider = Pick<
1212
/**
1313
* Sets the Unity Context's loaded state.
1414
*/
15-
readonly setIsLoaded?: (isLoaded: boolean) => void;
15+
readonly setIsLoaded: (isLoaded: boolean) => void;
16+
17+
/**
18+
* Sets the Unity Context's initialisation error.
19+
*/
20+
readonly setInitialisationError: (error?: Error) => void;
1621
};
1722

1823
export type { UnityProvider };

0 commit comments

Comments
 (0)