Skip to content

Commit

Permalink
Handling within indexed access of Response.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Dec 31, 2024
1 parent 2673359 commit db8d7fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ export class Integration {
response: f.createUnionTypeNode([
f.createIndexedAccessTypeNode(
f.createTypeReferenceNode(this.ids.posResponseInterface),
f.createTypeReferenceNode(methodPath),
f.createLiteralTypeNode(f.createStringLiteral(methodPath)),
),
f.createIndexedAccessTypeNode(
f.createTypeReferenceNode(this.ids.negResponseInterface),
f.createTypeReferenceNode(methodPath),
f.createLiteralTypeNode(f.createStringLiteral(methodPath)),
),
]),
encoded: f.createIntersectionTypeNode([
Expand Down

0 comments on commit db8d7fc

Please sign in to comment.