@grabjs/superapp-sdk
    Preparing search index...

    Interface WrappedModule

    Generic interface for all native JSBridge module wrappers.

    This is the base interface that all Wrapped*Module interfaces implement. Modules can use this directly for generic method invocation, or extend it with method-specific overloads for stricter typing.

    Using directly (CameraModule, ContainerModule):

    invoke<ScanQRCodeResult>('scanQRCode', request)
    

    Extending with method overloads (ProfileModule, LocationModule):

    export interface WrappedProfileModule extends WrappedModule {
    invoke(method: 'fetchEmail', params?: any): Promise<BridgeResponse<BridgeStatusCode, string>>;
    }
    interface WrappedModule {
        invoke<T>(
            method: string,
            params?: unknown,
        ):
            | BridgeStream<keyof StatusCodeMap<unknown>, T>
            | Promise<BridgeResponse<keyof StatusCodeMap<unknown>, T>>;
    }
    Index

    Methods

    Methods