-
Notifications
You must be signed in to change notification settings - Fork 44
Extraneous .
in generated TS code
#296
Comments
@gaku-sei what's the intent with |
@cristianoc Sorry, I'm a bit confused. Here is the first example using [@genType.import "./MyMath"] /* JS module to import from. */
/* Name and type of the JS value to import. */
external realValue: complexNumber => float = ""; Where In my example Also, writing |
@gaku-sei can you explain the convention a bit more? |
Closing optimistically. |
Normally when requiring Notice that the above rules also work for |
Sorry, I also forgot about |
Just in case, I made a super small repo demonstrating how the above pattern work: https://github.com/gaku-sei/node-resolution |
@gaku-sei thanks. Added |
GenType: 3.1.0
BuckleScript: 6.2.2-flambda-uniform-array.1 and 6.2.1
When binding some components, an extraneous
.
will be inserted between thefunction
keyword and the parens()
in TypeScript:Will generate the following code:
The relevant line code:
Not all the components generate the ill-formed code above though, and it seems to be related to the use of the
[@bs.string]
attribute 😕The text was updated successfully, but these errors were encountered: