WebSharper - How to expose dynamically mapped strategy-pattern objects on the server to the client?
问题 I am at the process of learning WebSharper, and I am struggling with making some of my logic work on the client-side. I have a few server-side objects with inheritance hierarchy, which I need to expose to the client-side. They deal with generating different parts of the page as doc fragments -- but on the client. [<JavaScriptExport>] type [<AbstractClass>] A() = abstract member Doc: Map<string, A> -> Doc ... [<JavaScriptExport>] type [<AbstractClass>] B() = inherit A() [<JavaScriptExport>]