Skip to content

Commit 32b0b22

Browse files
committed
Record compiled to js object now
1 parent 1947272 commit 32b0b22

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

docs/record.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ type car = {name: string, horsePower};
102102

103103
## Tips & Tricks
104104

105-
### Interop with JavaScript
106-
107-
If you're working with JavaScript, the record syntax & operations should feel familiar, and you might be tempted to interop with JS by converting a JS object to a record, and vice-versa. This is fine, but we have an **even better way without conversion overhead**! See [here](https://bucklescript.github.io/docs/en/object.html#record-mode)
108-
109105
### Record Types Are Found By Field Name
110106

111107
With records, you **cannot** say "I'd like this function to take any record type, as long as they have the field `age`". The following _works_, but not as expected:

0 commit comments

Comments
 (0)