|
22 | 22 | * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * |
23 | 23 | ****************************************************************************************/ |
24 | 24 |
|
25 | | -declare module 'openspace-api-js' { |
| 25 | +declare module "openspace-api-js" { |
26 | 26 | export class OpenSpaceApi { |
27 | 27 | /** |
28 | 28 | * Construct an instance of the OpenSpace API. |
@@ -118,21 +118,23 @@ declare module 'openspace-api-js' { |
118 | 118 | executeLuaScript( |
119 | 119 | script: string, |
120 | 120 | getReturnValue: boolean, |
121 | | - shouldBeSynchronized: boolean |
| 121 | + shouldBeSynchronized: boolean, |
122 | 122 | ): Promise<unknown | undefined>; |
123 | 123 |
|
124 | 124 | /** |
125 | 125 | * Execute a lua function from the OpenSpace library |
126 | 126 | * @param function The lua function to execute (for example |
127 | 127 | * `openspace.addSceneGraphNode`). |
| 128 | + * @param args The function arguments. |
128 | 129 | * @param getReturnValue Specified whether the return value should be collected. |
129 | 130 | * |
130 | 131 | * @return The return value of the script, if `getReturnValue` is true, otherwise |
131 | 132 | * undefined. |
132 | 133 | */ |
133 | 134 | executeLuaFunction( |
134 | 135 | fun: string, |
135 | | - getReturnValue: boolean |
| 136 | + args: unknown[], |
| 137 | + getReturnValue: boolean, |
136 | 138 | ): Promise<unknown | undefined>; |
137 | 139 |
|
138 | 140 | /** |
@@ -189,7 +191,7 @@ declare module 'openspace-api-js' { |
189 | 191 | constructor( |
190 | 192 | iterator: AsyncGenerator<any, void, unknown>, |
191 | 193 | talk: (payload: any) => void, |
192 | | - cancel: () => void |
| 194 | + cancel: () => void, |
193 | 195 | ); |
194 | 196 | /** |
195 | 197 | * Send data within a topic |
|
0 commit comments