I try to use Microsoft.FSharp.Collections.FSharpMap (standrad Map in F#) in my model. It implements
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue>
and
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TKey, TValue>>
so it is a Dictionary type. Unfortunately ReinforcedTypings gives me this warning:
Type resolvation warning RT0003: Could not find suitable TypeScript type for System.Collections.Generic.KeyValuePair`2[[System.String, System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[BkkFutar.Data.BKKApi.RouteReference, BkkFutarCore.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]. 'any' assumed
It looks like it identifies as an IReadOnlyCollection<KeyValuePair<K, V>> and not as a dictionary.
I also tried to use
Substitute(typeof(FSharpMap<,>),` new RtDictionaryType())
in the configuration but it does not work. On the other hand
Substitute(typeof(FSharpMap<string,string>), new RtDictionaryType(new RtSimpleTypeName("string"), new RtSimpleTypeName("string")))
does work but I dont want nor can specify every case.