# IConverter Interface

Module
import { IConverter } from "@tsed/common"
Source/packages/common/src/converters/interfaces/IConverter.ts

# Overview

interface IConverter {
    /**
     *
     * @param data
     * @param targetType
     * @param baseType
     * @param {IDeserializer} deserializer
     * @returns {any}
     */
    deserialize?(data: any, targetType: any, baseType?: any, deserializer?: IDeserializer): any;
    /**
     *
     * @param object
     * @param {ISerializer} serializer
     * @returns {any}
     */
    serialize?(object: any, serializer: ISerializer): any;
}