File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ class GetTestMailClient {
99 this . baseUrl = baseUrl ;
1010 }
1111
12- async createNew ( request : CreateNewRequest ) : Promise < CreateNewResponse > {
12+ async createNew ( request ? : CreateNewRequest ) : Promise < CreateNewResponse > {
1313 const response = await fetch ( `${ this . baseUrl } /gettestmail` , {
1414 method : 'POST' ,
1515 headers : {
1616 'Content-Type' : 'application/json' ,
1717 'X-API-Key' : this . apiKey ,
1818 } ,
19- body : JSON . stringify ( request ) ,
19+ body : request ? JSON . stringify ( request ) : undefined ,
2020 } ) ;
2121
2222 if ( ! response . ok ) {
Original file line number Diff line number Diff line change 22 "compilerOptions" : {
33 "outDir" : " dist/" ,
44 "target" : " ES2015" ,
5- "module" : " ESNext " ,
5+ "module" : " CommonJS " ,
66 "moduleResolution" : " node" ,
77 "esModuleInterop" : true ,
88 "strict" : true ,
You can’t perform that action at this time.
0 commit comments