Skip to content

Commit

Permalink
fix(nestjs): adjust globalNamingConventions options to also accept a …
Browse files Browse the repository at this point in the history
…single NamingConvention
  • Loading branch information
nartc committed Jan 11, 2021
1 parent 8f05d8f commit 822c790
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ export interface AutomapperModuleOptions {
/**
* Global NamingConventions to pass to all mappers
*/
globalNamingConventions?: {
source: NamingConvention;
destination: NamingConvention;
};
globalNamingConventions?:
| NamingConvention
| {
source: NamingConvention;
destination: NamingConvention;
};
/**
* Set to true if you want to use the default Mapper token for when only one mapper is setup with forRoot
* @default false
Expand Down

0 comments on commit 822c790

Please sign in to comment.