From 15f00d5aadd7775676ee3f48f0dee637f6cbe08f Mon Sep 17 00:00:00 2001 From: Rishi Tiwari Date: Thu, 7 May 2026 17:13:06 +0530 Subject: [PATCH 1/2] Update step-operations.md fix: update createClassSerdesWithDates example to use no-arg constructor --- .../steering/step-operations.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aws-lambda-durable-functions-power/steering/step-operations.md b/aws-lambda-durable-functions-power/steering/step-operations.md index 0b3f62d..68ff45c 100644 --- a/aws-lambda-durable-functions-power/steering/step-operations.md +++ b/aws-lambda-durable-functions-power/steering/step-operations.md @@ -233,6 +233,11 @@ class User { public createdAt: Date ) {} } +class User { + id: string = ''; + name: string = ''; + createdAt: Date = new Date(); +} const userSerdes = createClassSerdesWithDates(User, ['createdAt']); From 29bdd96a694f8ad910c67094f538bf252bf526c0 Mon Sep 17 00:00:00 2001 From: Rishi Tiwari Date: Thu, 7 May 2026 17:19:29 +0530 Subject: [PATCH 2/2] Update step-operations.md --- .../steering/step-operations.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/aws-lambda-durable-functions-power/steering/step-operations.md b/aws-lambda-durable-functions-power/steering/step-operations.md index 68ff45c..f947677 100644 --- a/aws-lambda-durable-functions-power/steering/step-operations.md +++ b/aws-lambda-durable-functions-power/steering/step-operations.md @@ -226,13 +226,6 @@ For complex types, provide custom serialization: ```typescript import { createClassSerdesWithDates } from '@aws/durable-execution-sdk-js'; -class User { - constructor( - public id: string, - public name: string, - public createdAt: Date - ) {} -} class User { id: string = ''; name: string = '';