File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/typescript-rxjs
samples/client/petstore/typescript-rxjs/builds Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,15 +107,15 @@ export class BaseAPI {
107107 return of(params).pipe(
108108 map((args) => {
109109 if (preMiddlewares) {
110- preMiddlewares.forEach((mw) => (args = mw.pre({ ...args } )));
110+ preMiddlewares.forEach((mw) => (args = mw.pre! ({ ...args } )));
111111 }
112112 return args;
113113 }),
114114 concatMap((args) =>
115115 ajax({ url: args.url, ...args.options } ).pipe(
116116 map((response) => {
117117 if (postMiddlewares) {
118- postMiddlewares.forEach((mw) => (response = mw.post({ ...params, response } )));
118+ postMiddlewares.forEach((mw) => (response = mw.post! ({ ...params, response } )));
119119 }
120120 return response;
121121 })
Original file line number Diff line number Diff line change @@ -118,15 +118,15 @@ export class BaseAPI {
118118 return of ( params ) . pipe (
119119 map ( ( args ) => {
120120 if ( preMiddlewares ) {
121- preMiddlewares . forEach ( ( mw ) => ( args = mw . pre ( { ...args } ) ) ) ;
121+ preMiddlewares . forEach ( ( mw ) => ( args = mw . pre ! ( { ...args } ) ) ) ;
122122 }
123123 return args ;
124124 } ) ,
125125 concatMap ( ( args ) =>
126126 ajax ( { url : args . url , ...args . options } ) . pipe (
127127 map ( ( response ) => {
128128 if ( postMiddlewares ) {
129- postMiddlewares . forEach ( ( mw ) => ( response = mw . post ( { ...params , response } ) ) ) ;
129+ postMiddlewares . forEach ( ( mw ) => ( response = mw . post ! ( { ...params , response } ) ) ) ;
130130 }
131131 return response ;
132132 } )
Original file line number Diff line number Diff line change @@ -118,15 +118,15 @@ export class BaseAPI {
118118 return of ( params ) . pipe (
119119 map ( ( args ) => {
120120 if ( preMiddlewares ) {
121- preMiddlewares . forEach ( ( mw ) => ( args = mw . pre ( { ...args } ) ) ) ;
121+ preMiddlewares . forEach ( ( mw ) => ( args = mw . pre ! ( { ...args } ) ) ) ;
122122 }
123123 return args ;
124124 } ) ,
125125 concatMap ( ( args ) =>
126126 ajax ( { url : args . url , ...args . options } ) . pipe (
127127 map ( ( response ) => {
128128 if ( postMiddlewares ) {
129- postMiddlewares . forEach ( ( mw ) => ( response = mw . post ( { ...params , response } ) ) ) ;
129+ postMiddlewares . forEach ( ( mw ) => ( response = mw . post ! ( { ...params , response } ) ) ) ;
130130 }
131131 return response ;
132132 } )
Original file line number Diff line number Diff line change @@ -118,15 +118,15 @@ export class BaseAPI {
118118 return of ( params ) . pipe (
119119 map ( ( args ) => {
120120 if ( preMiddlewares ) {
121- preMiddlewares . forEach ( ( mw ) => ( args = mw . pre ( { ...args } ) ) ) ;
121+ preMiddlewares . forEach ( ( mw ) => ( args = mw . pre ! ( { ...args } ) ) ) ;
122122 }
123123 return args ;
124124 } ) ,
125125 concatMap ( ( args ) =>
126126 ajax ( { url : args . url , ...args . options } ) . pipe (
127127 map ( ( response ) => {
128128 if ( postMiddlewares ) {
129- postMiddlewares . forEach ( ( mw ) => ( response = mw . post ( { ...params , response } ) ) ) ;
129+ postMiddlewares . forEach ( ( mw ) => ( response = mw . post ! ( { ...params , response } ) ) ) ;
130130 }
131131 return response ;
132132 } )
Original file line number Diff line number Diff line change @@ -118,15 +118,15 @@ export class BaseAPI {
118118 return of ( params ) . pipe (
119119 map ( ( args ) => {
120120 if ( preMiddlewares ) {
121- preMiddlewares . forEach ( ( mw ) => ( args = mw . pre ( { ...args } ) ) ) ;
121+ preMiddlewares . forEach ( ( mw ) => ( args = mw . pre ! ( { ...args } ) ) ) ;
122122 }
123123 return args ;
124124 } ) ,
125125 concatMap ( ( args ) =>
126126 ajax ( { url : args . url , ...args . options } ) . pipe (
127127 map ( ( response ) => {
128128 if ( postMiddlewares ) {
129- postMiddlewares . forEach ( ( mw ) => ( response = mw . post ( { ...params , response } ) ) ) ;
129+ postMiddlewares . forEach ( ( mw ) => ( response = mw . post ! ( { ...params , response } ) ) ) ;
130130 }
131131 return response ;
132132 } )
You can’t perform that action at this time.
0 commit comments