Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Protected constructor

Properties

Protected _mappings

_mappings: object

Type declaration

Methods

Protected _createMappingObject

Protected _createReverseMappingObject

  • _createReverseMappingObject<TSource, TDestination>(mapping: Mapping<TSource, TDestination>): Mapping<TDestination, TSource>
  • Type parameters

    • TSource: object

    • TDestination: object

    Parameters

    • mapping: Mapping<TSource, TDestination>

    Returns Mapping<TDestination, TSource>

Protected _dispose

  • _dispose(): void

Protected _getKeyFromMemberFn

Protected _getMapping

Protected _getMappingForDestination

  • _getMappingForDestination<TSource, TDestination>(destination: Constructable<TDestination>): Mapping<TSource, TDestination>

Private _getMappingForNestedKey

  • _getMappingForNestedKey<TSource, TDestination>(val: Constructable<TSource>): Mapping<TSource, TDestination>

Private _hasMapping

Protected _map

  • _map<TSource, TDestination>(sourceObj: TSource, mapping: Mapping<TSource, TDestination>, option?: MapActionOptions<TSource, TDestination>, isArrayMap?: boolean): TDestination
  • Type parameters

    • TSource: object

    • TDestination: object

    Parameters

    • sourceObj: TSource
    • mapping: Mapping<TSource, TDestination>
    • Default value option: MapActionOptions<TSource, TDestination> = { beforeMap: undefined, afterMap: undefined }
    • Default value isArrayMap: boolean = false

    Returns TDestination

Protected _mapArray

  • _mapArray<TSource, TDestination>(sourceArray: TSource[], mapping: Mapping<TSource, TDestination>, option?: MapActionOptions<TSource[], TDestination[]>): TDestination[]
  • Type parameters

    • TSource: object

    • TDestination: object

    Parameters

    • sourceArray: TSource[]
    • mapping: Mapping<TSource, TDestination>
    • Default value option: MapActionOptions<TSource[], TDestination[]> = {beforeMap: undefined,afterMap: undefined}

    Returns TDestination[]

Protected _mapArrayAsync

  • _mapArrayAsync<TSource, TDestination>(sourceArray: TSource[], mapping: Mapping<TSource, TDestination>, option?: MapActionOptions<TSource[], TDestination[]>): Promise<TDestination[]>
  • Type parameters

    • TSource: object

    • TDestination: object

    Parameters

    • sourceArray: TSource[]
    • mapping: Mapping<TSource, TDestination>
    • Default value option: MapActionOptions<TSource[], TDestination[]> = {beforeMap: undefined,afterMap: undefined}

    Returns Promise<TDestination[]>

Protected _mapAsync

  • _mapAsync<TSource, TDestination>(sourceObj: TSource, mapping: Mapping<TSource, TDestination>, option?: MapActionOptions<TSource, TDestination>): Promise<TDestination>
  • Type parameters

    • TSource: object

    • TDestination: object

    Parameters

    • sourceObj: TSource
    • mapping: Mapping<TSource, TDestination>
    • Default value option: MapActionOptions<TSource, TDestination> = {beforeMap: undefined,afterMap: undefined}

    Returns Promise<TDestination>

Protected getTransformationType

Static Private _assertMappingErrors

  • _assertMappingErrors<T>(obj: T, propKeys: Array<keyof T>): void
  • Type parameters

    • T: object

    Parameters

    • obj: T
    • propKeys: Array<keyof T>

    Returns void

Static Private _getMappingKey

  • _getMappingKey(sourceKey: string, destinationKey: string): string
  • Parameters

    • sourceKey: string
    • destinationKey: string

    Returns string

Static Private _getSourcePropertyKey

Static Private _isArray

Static Private _isClass

Static Private _isDate

Static Private _isResolver

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc