Skip to content

Custom type Translation from byte[] isn't working #33

Open
@vanilsonbr

Description

@vanilsonbr

I can't convert the type byte[] to another type, causing my typescript file to output incorrect types.
Example:
Config file:

{
  "customTypeTranslations": {
    "byte[]" : "string"
  }
}

Source c# file:

public class Test {
  public string Name { get; set; }
  public byte[] Data { get; set; }
}

output typescript file content:

export interface Test {
  name: string;
  data: byte[] //should be string
}

I've created another custom type translations, like TimeSpan to string and even KeyValuePair<string, string> to { key: string; value: string; } and it worked file, but byte[] to string isn't working.

Any ideias on this?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions