Function createUcDeserializer

  • Compiles deserializer for the given data model.

    This is a placeholder. It is replaced with actual deserializer when TypeScript code compiled with [ts-transformer-churi] enabled. It is expected that the result of this function call is stored to constant.

    Type Parameters

    • T

      Deserialized data type.

    Parameters

    Returns UcDeserializer<T>

    Universal deserializer instance.

  • Compiles by-tokens deserializer for the given data model.

    This is a placeholder. It is replaced with actual deserializer when TypeScript code compiled with [ts-transformer-churi] enabled. It is expected that the result of this function call is stored to constant.

    Type Parameters

    • T

      Deserialized data type.

    Parameters

    • model: UcModel<T>

      Deserialized data model.

    • Optional config: ByTokensConfig

      Compiler configuration.

      Optional

    Returns ByTokens<T>

    Universal deserializer instance.

  • Compiles synchronous deserializer for the given data model.

    This is a placeholder. It is replaced with actual deserializer when TypeScript code compiled with [ts-transformer-churi] enabled. It is expected that the result of this function call is stored to constant.

    Type Parameters

    • T

      Deserialized data type.

    Parameters

    • model: UcModel<T>

      Deserialized data model.

    • config: SyncConfig

      Compiler configuration.

    Returns Sync<T>

    Synchronous deserializer instance.

  • Compiles asynchronous deserializer for the given data model.

    This is a placeholder. It is replaced with actual deserializer when TypeScript code compiled with [ts-transformer-churi] enabled. It is expected that the result of this function call is stored to constant.

    Type Parameters

    • T

      Deserialized data type.

    Parameters

    Returns Async<T>

    Asynchronous deserializer instance.

  • Compiles by-tokens asynchronous deserializer for the given data model.

    This is a placeholder. It is replaced with actual deserializer when TypeScript code compiled with [ts-transformer-churi] enabled. It is expected that the result of this function call is stored to constant.

    Type Parameters

    • T

      Deserialized data type.

    Parameters

    Returns AsyncByTokens<T>

    Asynchronous deserializer instance.

Generated using TypeDoc