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

Generating for tuples is not working #4944

Open
geskill opened this issue Jul 25, 2024 · 0 comments
Open

Generating for tuples is not working #4944

geskill opened this issue Jul 25, 2024 · 0 comments

Comments

@geskill
Copy link

geskill commented Jul 25, 2024

Latest tested version: v14.1.0
Latest working version: v13.20

public IList<(string, int, List<(string, int)>)> Data { get; set; }

v13

export class XYZ implements IXZY {
    item1!: string;
    item2!: number;
    item3!: ValueTupleOfStringAndInteger[];

v14

export class XYZ implements IXZY {
    systemRuntimeCompilerServicesITupleLength?: number;
    systemRuntimeCompilerServicesITupleItem?: any | undefined;

issues:

  • names are weird
  • objects or object-arrays inside tuples are missing

Workaround
Create actual classes ;)

Originally posted by @geskill in #4524 (comment)

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

No branches or pull requests

1 participant