Перейти к основному содержанию

WRAP_NATIVE

Callable

  • WRAP_NATIVE<T>(name: string): T

  • Allows to create new JS modules imported from C++ code and use it in the mod.


    Type parameters

    • T = any

    Parameters

    • name: string

      name of the module, as registered from native code

    Returns T

    JS module, implemented in native (C++) code.