From db8d7fc275f0ceeca2547fad1323984c3fa00ef9 Mon Sep 17 00:00:00 2001 From: Robin Tail Date: Tue, 31 Dec 2024 11:54:54 +0100 Subject: [PATCH] Handling within indexed access of Response. --- src/integration.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/integration.ts b/src/integration.ts index b88a876a0..0c3bd8f39 100644 --- a/src/integration.ts +++ b/src/integration.ts @@ -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([