From your comments, it sounds like you're on the right track. WebSharper does not currently implement any binary processing of the .NET API, so it is proper to implement it yourself. Using numeric types for a reasonable compilation time, bearing in mind that they are all represented as Number in JavaScript, is also a good idea. If you are missing conversion proxies from the standard library, you can add them or use the Inline definition, I believe this should work:
[<AutoOpen>] module Conversions = [<Inline "$0">] let inline int64 x = int64 x [<Inline "$0">] let inline int32 x = int32 x [<Inline "$0">] let inline uint32 x = uint32 x [<Inline "$0">] let inline uint64 x = uint64 x
Of course, in the above implementations, the truncation that these operators do in F # / is not performed. NET
t0yv0 source share