FSharp.Formatting
FSharp.Formatting copied to clipboard
Is it possible to expose the `ApiDocMember.Parameters` using a "real" record?
Currently, they are exposed using an anonymous record, this means that I can't easily pass it to a function to manipulate them.
My function is defined as:
let rec extractParametersInformation
(state : Common.ParamTypesInformation)
(parameters : list<{|
ParameterDocs: option<ApiDocHtml>
ParameterNameText: string
ParameterSymbol: Choice<FSharp.Compiler.Symbols.FSharpParameter,FSharp.Compiler.Symbols.FSharpField>
ParameterType: ApiDocHtml |}>) =
But because, anonymous record from different assembly aren't compatible, I can't use it. I tried to let type inference do the work but the type cannot be inferred in this situation.
This means, I need to pre-process the anonymous record before using it.
I think, it makes sense to not use an anonymous record here because this is a public API.
Agreed!