I have a class,
public class Instance : IResource
{
public Dictionary Value { get; set; }
and it is mapped to
<
A quick and dirty workaround is to use a regex to alter output:
Using
<#= Regex.Replace( ts.Generate(TsGeneratorOutput.Properties)
, @":\s*System\.Collections\.Generic\.KeyValuePair\<(?[^\,]+),(?[^\,]+)\>\[\];"
, m=>": {[key: "+m.Groups["k"].Value+"]: "+m.Groups["v"].Value+"};"
, RegexOptions.Multiline)
#>
Transforms a field
myField: System.Collections.Generic.KeyValuePair[];
to
myField: {[key: string]: OtherClass};