Replies: 2 comments 1 reply
-
No the name of the field is based on the name of the variable. What is the use case for renaming the field ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
So far, it's just a curiosity as I'm prototyping but I want to use alternate names for keywords like module ParamObject =
[<AllowNullLiteral>]
[<Global>]
type Options [<ParamObject; Emit("$0")>] (
[<Emit("class")>]
className: string, ?isCaseSensitive: bool) =
member val className: string = jsNative with get, set
... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
With a param object like https://fable.io/docs/javascript/features.html#paramobject, is it possible to bind a field to a different name in the js? I tried using
CompiledName
andEmit
, but I don't think these attributes are being used for determining the object's fields.Beta Was this translation helpful? Give feedback.
All reactions