spark.worker.getExposed
function getExposed(key: string): unknownGet an exposed binding by key.
Parameters
keystring- Key of the binding
Returns
unknown– The exposed value or function, or undefined if not exposedfunction getExposed(key: string): unknownGet an exposed binding by key.
keystringunknown– The exposed value or function, or undefined if not exposed