Skip to content

Commit 4949dfe

Browse files
committedFeb 1, 2024
reword bindings to JS tag functions
1 parent 37fcc8f commit 4949dfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pages/docs/manual/latest/bind-to-js-function.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ Currently 4 directives are supported: `null_to_opt`, `undefined_to_opt`, `nullab
428428

429429
**Experimental** You can easily bind to [JS tagged template functions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates).
430430
Tag functions in JS expect as input an array of strings and variadic parameters for the arguments of the interpolation.
431-
To bind to those functions in rescript, write bindings that have two arrays as arguments,
431+
To bind to those functions in rescript, the binding signature must have two arrays as arguments,
432432
the first one being an array of strings and the second can be an array of anything.
433433
You add the `@taggedTemplate` annotation and you're good to go!
434434

0 commit comments

Comments
 (0)
Please sign in to comment.