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.
I want to convert byte[] as ArrayBuffer and the customTypeTranslations is not working.
Will the PR #43 be accepted? Or should the conversion set byte[] as ArrayBuffer directly?
I can't convert the type
byte[]
to another type, causing my typescript file to output incorrect types. Example: Config file:Source c# file:
output typescript file content:
I've created another custom type translations, like
TimeSpan
tostring
and evenKeyValuePair<string, string>
to{ key: string; value: string; }
and it worked file, butbyte[]
tostring
isn't working.Any ideias on this?
Thanks in advance.