Skip to content

How to map when using custom generic type in TS #372

Answered by micalevisk
renatoargh asked this question in Q&A
Discussion options

You must be logged in to vote

what if you use

  @AutoMap({ typeFn: () => String })
  @ApiProperty({
    example: examples.person2.name,
    required: false,
    description: 'Contact person for the address',
  })
  contactPerson: Nullable<string>

https://automapperts.netlify.app/docs/plugins-system/classes-limitations/#strict-mode

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@renatoargh
Comment options

@micalevisk
Comment options

Answer selected by nartc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants