File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
packages/openapi-ts/src/plugins Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ const generateResourceCallExpression = ({
247
247
case : 'preserve' ,
248
248
name : plugin . config . httpRequests . classNameBuilder ,
249
249
} ,
250
- name : rootClassName ,
250
+ name : rootClassName . className ,
251
251
} ) ;
252
252
253
253
// Build the method access path using inject
Original file line number Diff line number Diff line change @@ -267,11 +267,12 @@ const generateClassSdk = ({
267
267
268
268
// Skip if the property already exists
269
269
if (
270
- currentClass . nodes . find ( ( node : ts . ClassElement ) => (
270
+ currentClass . nodes . find (
271
+ ( node : ts . ClassElement ) =>
271
272
node . name &&
272
273
ts . isIdentifier ( node . name ) &&
273
- node . name . escapedText === childClassName . propertyName
274
- ) )
274
+ node . name . escapedText === childClassName . propertyName ,
275
+ )
275
276
) {
276
277
continue ;
277
278
}
You can’t perform that action at this time.
0 commit comments