Skip to content

Commit 94b74e6

Browse files
authored
Update features.md
Changed `[<ImportMember("hello", "./hello.js")>]` to `[<ImportMember("./hello.js")>]` as ImportMember only takes a sigle string.
1 parent 1433a26 commit 94b74e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/javascript/features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ let hello : unit -> unit = jsNative
140140
`ImportMember` is used to import a specific member from a JavaScript module, the name is based on the name of the F# value.
141141

142142
```fs
143-
[<ImportMember("hello", "./hello.js")>]
143+
[<ImportMember("./hello.js")>]
144144
let hello : unit -> unit = jsNative
145145
// Generates: import { hello } from "./hello.js";
146146
```

0 commit comments

Comments
 (0)