-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(classes): isPrimitiveConstructor also returns true for Array cons…
…tructor fix #249
- Loading branch information
Showing
4 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/integration-test/src/lib/with-classes/fixtures/models/doctor.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { AutoMap } from '@automapper/classes'; | ||
|
||
export class Doctor { | ||
@AutoMap() | ||
name: string; | ||
@AutoMap() | ||
titleTags: string[]; | ||
} | ||
|
||
export class DoctorDto { | ||
@AutoMap() | ||
name: string; | ||
@AutoMap() | ||
titleTags: string[]; | ||
} |
6 changes: 6 additions & 0 deletions
6
packages/integration-test/src/lib/with-classes/fixtures/profiles/doctor.profile.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import type { MappingProfile } from '@automapper/types'; | ||
import { Doctor, DoctorDto } from '../models/doctor'; | ||
|
||
export const doctorProfile: MappingProfile = (mapper) => { | ||
mapper.createMap(Doctor, DoctorDto); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters