wrapCallback<F extends Function> function

F? wrapCallback<F extends Function>(
  1. F? f
)

Wraps callbacks so they can be called from JS

Implementation

F? wrapCallback<F extends Function>(F? f) {
  if (f != null) {
    return allowInterop<F>(f);
  }
  return f;
}