TypeScript static typings are not available at runtime. To introduce a runtime representation of mapping from CustomerDto to Customer a MappingPair token has to be created.
import { MappingPair } from '@dynamic-mapper/mapper';
const CustomerDtoToCustomer = new MappingPair<CustomerDto, Customer>();