Skip to content

docs: update constructor declaration for enum-like class in "Design Guidelines"#15520

Merged
mergify[bot] merged 3 commits intoaws:masterfrom
dan-lind:docs-fix-constructor-issue
Jul 28, 2021
Merged

docs: update constructor declaration for enum-like class in "Design Guidelines"#15520
mergify[bot] merged 3 commits intoaws:masterfrom
dan-lind:docs-fix-constructor-issue

Conversation

@dan-lind
Copy link
Copy Markdown
Contributor

Fix constructor issue with enum like class examples


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Fix constructor issue with enum like class examples
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jul 13, 2021

Copy link
Copy Markdown
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great @dan-lind, thanks so much for the contribution!

One tiny comment before we merge this in.

@@ -617,7 +617,7 @@ export class MyOption {
public static COMMON_OPTION_1 = new MyOption('common.option-1');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change the MyProps while we're in the area to read:

export interface MyProps {
  readonly option: MyOption;
}

(Sorry, I can't comment on that line directly, because it was not changed in the PR)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I've updated the PR!

@skinny85 skinny85 changed the title fix(docs): Update enum like class examples docs: update constructor declaration for enum-like class in "Design Guidelines" Jul 13, 2021
@skinny85 skinny85 self-assigned this Jul 13, 2021
Add readonly to MyProps
@mergify mergify bot dismissed skinny85’s stale review July 13, 2021 15:28

Pull request has been modified.

Copy link
Copy Markdown
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution @dan-lind!

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 27, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 583665f
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 3f5b910 into aws:master Jul 28, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 28, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Aug 3, 2021
…uidelines" (aws#15520)

Fix constructor issue with enum like class examples


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
hollanddd pushed a commit to hollanddd/aws-cdk that referenced this pull request Aug 26, 2021
…uidelines" (aws#15520)

Fix constructor issue with enum like class examples


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
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