Skip to content

NativeTransportErrorDetails

Optional details attached to transport errors. The cause field can preserve the original error or runtime value that triggered the transport failure.

Importing

ts
import type { NativeTransportErrorDetails } from '@almighty-shogun/webkit-native-bridge'

Usage

ts
import type { NativeTransportErrorDetails } from '@almighty-shogun/webkit-native-bridge'

const details: NativeTransportErrorDetails = { cause: new Error('Missing handler') };

Returns

A TypeScript type for native bridge APIs. It is erased at runtime and is used only by TypeScript to describe the shape of values passed to or returned from the package APIs.

Type signature

ts
type NativeTransportErrorDetails = {
    cause?: unknown;
};

All packages are released under the MIT License.