nexus-rpc
    Preparing search index...

    Interface TypeInfo<T, D>Experimental

    Describes how an operation value of type T maps to a transfer representation of type D.

    A transfer representation can be more suitable for moving between a Nexus caller and handler. For example, an application can map a class instance to a plain object and reconstruct the class after transfer.

    interface TypeInfo<T = unknown, D = T> {
        transferTypeConverter?: TransferTypeConverter<T, D>;
    }

    Type Parameters

    • T = unknown
    • D = T
    Index

    Properties

    transferTypeConverter?: TransferTypeConverter<T, D>

    Converts between an application value and its transfer representation.