Interface ClassConfiguration

Configuration for the Java class proxy.

Since

2.4.0

interface ClassConfiguration {
    asyncJavaExceptionObjects?: boolean;
    asyncSuffix?: string;
    customInspect?: boolean;
    runEventLoopWhenInterfaceProxyIsActive?: boolean;
    syncSuffix?: string;
}

Properties

asyncJavaExceptionObjects?: boolean

If true, any Java exception will be returned in the cause field of the thrown JavaError even in async methods. Enabling this will cause the stack trace of the JavaScript error to be lost. If not specified, the value from the global configuration will be used.

Since

2.6.0

asyncSuffix?: string

The suffix to use for asynchronous methods. Set this value to an empty string to disable the suffix. The default value is an empty string. Setting this value to the same value as syncSuffix will result in an error. If not specified, the value from the global configuration will be used.

customInspect?: boolean

If true, the custom inspect method will be used to display the object in the console. If not specified, the value from the global configuration will be used.

runEventLoopWhenInterfaceProxyIsActive?: boolean

If true, the event loop will be run when an interface proxy is active. If not specified, the value from the global configuration will be used.

syncSuffix?: string

The suffix to use for synchronous methods. Set this value to an empty string to disable the suffix. The default value is "Sync". Setting this value to the same value as asyncSuffix will result in an error. If not specified, the value from the global configuration will be used.

Generated using TypeDoc