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

feat(jsii): support aliasing type unions #1807

Closed
wants to merge 2 commits into from

Conversation

RomainMuller
Copy link
Contributor

RFC: aws/aws-cdk-rfcs#193, aws/aws-cdk-rfcs#194


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

@RomainMuller RomainMuller added effort/medium Medium work item – a couple days of effort contribution/core This is a PR that came from AWS. module/compiler Issues affecting the JSII compiler labels Jul 21, 2020
@RomainMuller RomainMuller requested a review from a team July 21, 2020 13:55
@RomainMuller RomainMuller self-assigned this Jul 21, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-Blkkw9bQFn8A
  • Commit ID: aace7b7
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

@@ -795,6 +797,7 @@ export enum TypeKind {
Class = 'class',
Enum = 'enum',
Interface = 'interface',
NamedUnion = 'union',
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this not need an assembly version bump? There will now be assemblies that old version of jsii have no idea what to do with.

@@ -221,7 +221,7 @@ export class Assembly extends ModuleLike {
break;

default:
throw new Error('Unknown type kind');
throw new Error(`Unsupported type kind: ${typeSpec.kind}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

Ugh

Base automatically changed from master to main October 28, 2020 16:31
@jsteinich jsteinich mentioned this pull request Mar 1, 2021
8 tasks
@jsteinich
Copy link
Contributor

@RomainMuller Is this something the core team is likely to pick back up anytime soon? Or could this be picked up by an external contributor (possibly myself)?
I see this as being quite important for a potential change in cdktf.

@RomainMuller
Copy link
Contributor Author

@jsteinich as I said on Slack - I don't think we're going to be getting to this anytime soon, but I plan to get to it in 2021/2022... Community contributions are always welcome, and I'll be happy to provide pointers & guidances as is necessary if someone wants to take on the challenge.

@RomainMuller
Copy link
Contributor Author

Discarding as stale.

@RomainMuller RomainMuller deleted the rmuller/feat/type-union-aliases branch February 7, 2022 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS. effort/medium Medium work item – a couple days of effort module/compiler Issues affecting the JSII compiler
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants