-
Notifications
You must be signed in to change notification settings - Fork 107
fix(docs): improve deprecatedTrait with default description #1541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
...script-codegen/src/main/java/software/amazon/smithy/typescript/codegen/TypeScriptWriter.java
Show resolved
Hide resolved
4013229
to
5bd831a
Compare
.orElse(""); | ||
String deprecationString = "@deprecated" + deprecationMessage; | ||
docs = docs + "\n\n" + deprecationString; | ||
.map(msg -> " " + msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to prefix empty space here since one already exists after the @deprecated
tag.
String deprecationString = "@deprecated" + deprecationMessage; | ||
docs = docs + "\n\n" + deprecationString; | ||
.map(msg -> " " + msg) | ||
.orElse(" see description"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to prefix empty space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spacing
Fixes aws/aws-sdk-js-v3#5761, JS-6001
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.