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

Wrapper Types conversion does not work for repeated field #995

Open
gabrosys opened this issue Feb 1, 2024 · 0 comments
Open

Wrapper Types conversion does not work for repeated field #995

gabrosys opened this issue Feb 1, 2024 · 0 comments

Comments

@gabrosys
Copy link

gabrosys commented Feb 1, 2024

Hello,

Given:

import "google/protobuf/wrappers.proto";

message Message  {
  repeated google.protobuf.DoubleValue list = 1;
}

Expected:

export interface Message {
    list: (number | undefined)[];
}

Actual:

export interface Message {
    list: number[];
}

An interesting aspect, without the repeated property the generated code is correct.

Tested with version v1.167.2. Is it intended, if so can you explain to me why and how I could solve this issue?
Thanks a lot in advance and have a good day 🙇

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