nexus-rpc
    Preparing search index...

    Interface TransferTypeConverter<T, D>Experimental

    Converts between an application value of type T and its transfer representation of type D.

    interface TransferTypeConverter<T, D = unknown> {
        fromTransferType(value: D): T;
        toTransferType(value: T): D;
    }

    Type Parameters

    • T
    • D = unknown
    Index

    Methods

    • Experimental

      Converts a transfer representation back to its application value.

      Parameters

      • value: D

      Returns T

    • Experimental

      Converts an application value to its transfer representation.

      Parameters

      • value: T

      Returns D