This repository was archived by the owner on Jan 7, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -21,17 +21,13 @@ export class AutomapperModule implements OnModuleInit {
2121 */
2222 static withMapper (
2323 name ?: string ,
24- globalSettings ?: AutoMapperGlobalSettings & { dev ?: boolean }
25- ) : DynamicModule ;
26- static withMapper (
27- globalSettings ?: AutoMapperGlobalSettings & { dev ?: boolean }
24+ globalSettings ?: AutoMapperGlobalSettings
2825 ) : DynamicModule ;
26+ static withMapper ( globalSettings ?: AutoMapperGlobalSettings ) : DynamicModule ;
2927 static withMapper ( ...args : any [ ] ) : DynamicModule {
3028 const [ name , globalSettings ] = getWithMapperArgs ( args ) ;
3129 const mapper = new AutoMapper ( ) ;
3230 if ( globalSettings != null ) {
33- globalSettings . throwError =
34- globalSettings . dev != null ? ! globalSettings . dev : undefined ;
3531 mapper . withGlobalSettings ( globalSettings ) ;
3632 }
3733
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { AutoMapperGlobalSettings } from '@nartc/automapper';
22
33export function getWithMapperArgs (
44 args : any [ ]
5- ) : [ string , ( AutoMapperGlobalSettings & { dev ?: boolean } ) ?] {
5+ ) : [ string , AutoMapperGlobalSettings ?] {
66 if ( ! args . length ) {
77 return [ '' ] ;
88 }
You can’t perform that action at this time.
0 commit comments