Skip to content

Conversation

@leonmk-aws
Copy link
Contributor

Fixes #

Typewriter was not rendering extends statements for structs.
Having:

  new StructType(scope, {
    name: 'MyStruct',
    extends: [scope.type('AnotherStruct')],
  });

Would not render the extends statement.

Description of the changes

Added a getter for the extends on the struct type and rendering code for it.

Testing

Added unit tests

@leonmk-aws leonmk-aws changed the title fix(typewriter): struct cannot extend strucs fix(typewriter): struct cannot extend structs Dec 2, 2025
@leonmk-aws leonmk-aws force-pushed the leonmk-struct-extend branch from d74a038 to b6d84ad Compare December 2, 2025 16:05
@github-actions
Copy link
Contributor

github-actions bot commented Dec 2, 2025

@aws-cdk/aws-service-spec: No model change detected

@aws-cdk-automation aws-cdk-automation added this pull request to the merge queue Dec 3, 2025
Merged via the queue into main with commit 8773c88 Dec 3, 2025
10 checks passed
@aws-cdk-automation aws-cdk-automation deleted the leonmk-struct-extend branch December 3, 2025 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants