ElectronRemote.createFunctionWithReturnValue method
ElectronRemote › createFunctionWithReturnValue
Unofficial
Wraps a value in a function that returns it, for passing across the remote boundary.Signature:
createFunctionWithReturnValue(returnValue: T): () => TParameters:
| Parameter | Type | Description |
|---|---|---|
| returnValue | T | The value the created function should return. |
Returns: () => T — A function returning returnValue.