This repository was archived by the owner on Jan 7, 2021. It is now read-only.
File tree 2 files changed +3
-7
lines changed
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 {
21
21
*/
22
22
static withMapper (
23
23
name ?: string ,
24
- globalSettings ?: AutoMapperGlobalSettings & { dev ?: boolean }
25
- ) : DynamicModule ;
26
- static withMapper (
27
- globalSettings ?: AutoMapperGlobalSettings & { dev ?: boolean }
24
+ globalSettings ?: AutoMapperGlobalSettings
28
25
) : DynamicModule ;
26
+ static withMapper ( globalSettings ?: AutoMapperGlobalSettings ) : DynamicModule ;
29
27
static withMapper ( ...args : any [ ] ) : DynamicModule {
30
28
const [ name , globalSettings ] = getWithMapperArgs ( args ) ;
31
29
const mapper = new AutoMapper ( ) ;
32
30
if ( globalSettings != null ) {
33
- globalSettings . throwError =
34
- globalSettings . dev != null ? ! globalSettings . dev : undefined ;
35
31
mapper . withGlobalSettings ( globalSettings ) ;
36
32
}
37
33
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { AutoMapperGlobalSettings } from '@nartc/automapper';
2
2
3
3
export function getWithMapperArgs (
4
4
args : any [ ]
5
- ) : [ string , ( AutoMapperGlobalSettings & { dev ?: boolean } ) ?] {
5
+ ) : [ string , AutoMapperGlobalSettings ?] {
6
6
if ( ! args . length ) {
7
7
return [ '' ] ;
8
8
}
You can’t perform that action at this time.
0 commit comments