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:

ParameterTypeDescription
returnValueTThe value the created function should return.

Returns: () => TA function returning returnValue.