Skip to content
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

fix: match behavioral interface to 'I'-prefix #271

Merged
merged 1 commit into from
Oct 23, 2018
Merged

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Oct 22, 2018

This change incorporates two fixes that will make the tagging
of interfaces as datatypes more correct going forward:

  • If a datatype candidate interface is named with an I-prefix
    (such as IConnectable), it will no longer be considered
    a datatype interface, regardless of whether it would qualify
    as one.

  • If an interface contains behavior (is definitely not a datatype
    interface) then the name must start with an I as well.

Fixes #269.

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

This change incorporates two fixes that will make the tagging
of interfaces as datatypes more correct going forward:

- If a datatype candidate interface is named with an I-prefix
  (such as IConnectable), it will no longer be considered
  a datatype interface, regardless of whether it would qualify
  as one.

- If an interface contains behavior (is definitely not a datatype
  interface) then the name must start with an I as well.
@rix0rrr rix0rrr merged commit 03103f3 into master Oct 23, 2018
@rix0rrr rix0rrr deleted the huijbers/idatatype branch October 23, 2018 08:12
rix0rrr pushed a commit that referenced this pull request Oct 23, 2018
* **jsii:** use base interfaces for 'datatype' property ([#265](#265)) ([1c56902](1c56902)), closes [#264](#264)
* **jsii:** use default jsx compiler options ([#261](#261)) ([bf1f586](bf1f586)), closes [aws/aws-cdk#830](aws/aws-cdk#830)
* match behavioral interface to 'I'-prefix ([#271](#271)) ([03103f3](03103f3))
* require distinct argument and property names ([#272](#272)) ([4d2f268](4d2f268)), closes [#268](#268)
@rix0rrr rix0rrr mentioned this pull request Oct 23, 2018
rix0rrr added a commit that referenced this pull request Oct 23, 2018
Bug Fixes
=======

* **jsii:** use base interfaces for 'datatype' property ([#265](#265)) ([1c56902](1c56902)), closes [#264](#264)
* **jsii:** use default jsx compiler options ([#261](#261)) ([bf1f586](bf1f586)), closes [aws/aws-cdk#830](aws/aws-cdk#830)
* match behavioral interface to 'I'-prefix ([#271](#271)) ([03103f3](03103f3))
* require distinct argument and property names ([#272](#272)) ([4d2f268](4d2f268)), closes [#268](#268)
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.

Tie datatype-ness to I prefix.
2 participants