-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
refactor: Construct props must not use the 'any' type (awslint:props-no-any) #2701
Conversation
…no-any) Adds a new awslint:props-no-any rule which validates that props do not use the "any" type. This is in accordance with the new AWS Construct Library guidelines. Fixes #2673
@@ -51,7 +51,7 @@ export interface PassProps { | |||
* | |||
* @default No injected result | |||
*/ | |||
readonly result?: any; | |||
readonly result?: {[key: string]: any}; |
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.
Call this out as a BREAKING CHANGE in the commit message that you merge.
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.
will do
@@ -16,7 +16,7 @@ export interface SubscriptionProps { | |||
* | |||
* The meaning of this value depends on the value for 'protocol'. | |||
*/ | |||
readonly endpoint: any; | |||
readonly endpoint: string; |
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.
Call this out as a BREAKING CHANGE in the commit message that you merge.
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.
will do
Adds a new awslint:props-no-any rule which validates that props do not use
the "any" type.
This is in accordance with the new AWS Construct Library guidelines.
Fixes #2673
Pull Request Checklist
design
folderBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license.