From a5a7154b39d5351dbbf68eb6e0f76e128488ce6c Mon Sep 17 00:00:00 2001 From: lewenhaupt Date: Tue, 27 Jan 2026 12:23:15 +0100 Subject: [PATCH] fix: support both old and new style of readonly properties without typeerror --- src/ServerlessSpy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ServerlessSpy.ts b/src/ServerlessSpy.ts index 100cc5b..6d1ae0e 100644 --- a/src/ServerlessSpy.ts +++ b/src/ServerlessSpy.ts @@ -594,7 +594,7 @@ export class ServerlessSpy extends Construct { tableStreamArnDescriptor === undefined || tableStreamArnDescriptor.get === undefined ) { - (table as any).tableStreamArn = ( + (table as any)['tableStreamArn'] = ( table.node.defaultChild as dynamoDb.CfnTable ).attrStreamArn; }