@@ -37,7 +37,7 @@ export interface Graphic {
3737 /** A set of characteristics / capabilities of the Renderer, that affects how the Graphic will be rendered. */
3838 renderCharacteristics : RenderCharacteristics ;
3939 } & VendorExtend
40- ) => Promise < ReturnPayload > ;
40+ ) => Promise < ReturnPayload | undefined > ;
4141
4242 /**
4343 * Called by the Renderer to force the Graphic to terminate/dispose/clear any loaded resources.
@@ -51,7 +51,7 @@ export interface Graphic {
5151 /** The data send here is defined in the manifest "schema". Note: This data MUST HAVE the same type as the `data` argument in the load method. */
5252 data : unknown ;
5353 } & VendorExtend
54- ) => Promise < ReturnPayload > ;
54+ ) => Promise < ReturnPayload | undefined > ;
5555
5656 /** This is called when user calls the "play" action. */
5757 playAction : (
@@ -68,21 +68,23 @@ export interface Graphic {
6868 /** This is called when user calls the "stop" action. */
6969 stopAction : (
7070 params : { skipAnimation : boolean } & VendorExtend
71- ) => Promise < ReturnPayload > ;
71+ ) => Promise < ReturnPayload | undefined > ;
7272
7373 /**
7474 * Called by the Renderer to invoke an Action on the Graphic
7575 * @returns The return value of the invoked method (vendor-specific)
7676 */
77- customAction : ( params : ActionInvokeParams ) => Promise < ReturnPayload > ;
77+ customAction : (
78+ params : ActionInvokeParams
79+ ) => Promise < ReturnPayload | undefined > ;
7880
7981 /**
8082 * If the Graphic supports non-realtime rendering, this is called to make the graphic jump to a certain point in time.
8183 * @returns A Promise that resolves when the Graphic has finished rendering the requested frame.
8284 */
8385 goToTime : (
8486 params : { timestamp : number } & VendorExtend
85- ) => Promise < ReturnPayload > ;
87+ ) => Promise < ReturnPayload | undefined > ;
8688
8789 /**
8890 * If the Graphic supports non-realtime rendering, this is called to schedule actions to be invoked at a certain point in time.
@@ -116,6 +118,5 @@ export interface Graphic {
116118 } & VendorExtend ) ;
117119 } [ ] ;
118120 } & VendorExtend
119- ) => Promise < EmptyPayload > ;
121+ ) => Promise < EmptyPayload | undefined > ;
120122}
121-
0 commit comments