Skip to content

Commit 032bdb2

Browse files
authored
docs(power): update createClassSerdesWithDates with no-arg constructor
* Update step-operations.md fix: update createClassSerdesWithDates example to use no-arg constructor * Update step-operations.md
1 parent 9337b96 commit 032bdb2

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

aws-lambda-durable-functions-power/steering/step-operations.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,9 @@ For complex types, provide custom serialization:
227227
import { createClassSerdesWithDates } from '@aws/durable-execution-sdk-js';
228228

229229
class User {
230-
constructor(
231-
public id: string,
232-
public name: string,
233-
public createdAt: Date
234-
) {}
230+
id: string = '';
231+
name: string = '';
232+
createdAt: Date = new Date();
235233
}
236234

237235
const userSerdes = createClassSerdesWithDates(User, ['createdAt']);

0 commit comments

Comments
 (0)