Skip to content

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): () => T

Parameters:

Parameter Type Description
returnValue T The value the created function should return.

Returns: () => TA function returning returnValue.