Skip to content

Commit 99c0097

Browse files
committed
try changing printer uncurried config
1 parent f11b5ea commit 99c0097

14 files changed

+156
-165
lines changed

Diff for: analysis/tests/src/expected/Auto.res.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Hover src/Auto.res 2:13
2-
{"contents": {"kind": "markdown", "value": "```rescript\n(. Belt.List.t<'a>, (. 'a) => 'b) => Belt.List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype Belt.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22belt_List.resi%22%2C35%2C0%5D)\n\n\n\n Returns a new list with `f` applied to each element of `someList`.\n\n ```res example\n list{1, 2}->Belt.List.map(x => x + 1) // list{3, 4}\n ```\n"}}
2+
{"contents": {"kind": "markdown", "value": "```rescript\n(Belt.List.t<'a>, 'a => 'b) => Belt.List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype Belt.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22belt_List.resi%22%2C35%2C0%5D)\n\n\n\n Returns a new list with `f` applied to each element of `someList`.\n\n ```res example\n list{1, 2}->Belt.List.map(x => x + 1) // list{3, 4}\n ```\n"}}
33

Diff for: analysis/tests/src/expected/Completion.res.txt

+77-84
Large diffs are not rendered by default.

Diff for: analysis/tests/src/expected/CompletionExpressions.res.txt

+12-12
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ Path fnTakingCallback
780780
"label": "() => {}",
781781
"kind": 12,
782782
"tags": [],
783-
"detail": "(. unit) => unit",
783+
"detail": "unit => unit",
784784
"documentation": null,
785785
"sortText": "A",
786786
"insertText": "() => {$0}",
@@ -811,7 +811,7 @@ Path fnTakingCallback
811811
"label": "v => {}",
812812
"kind": 12,
813813
"tags": [],
814-
"detail": "(. bool) => unit",
814+
"detail": "bool => unit",
815815
"documentation": null,
816816
"sortText": "A",
817817
"insertText": "${1:v} => {$0}",
@@ -831,7 +831,7 @@ Path fnTakingCallback
831831
"label": "event => {}",
832832
"kind": 12,
833833
"tags": [],
834-
"detail": "(. ReactEvent.Mouse.t) => unit",
834+
"detail": "ReactEvent.Mouse.t => unit",
835835
"documentation": null,
836836
"sortText": "A",
837837
"insertText": "${1:event} => {$0}",
@@ -851,7 +851,7 @@ Path fnTakingCallback
851851
"label": "(~on, ~off=?, variant) => {}",
852852
"kind": 12,
853853
"tags": [],
854-
"detail": "(. ~on: bool, ~off: bool=?, variant) => int",
854+
"detail": "(~on: bool, ~off: bool=?, variant) => int",
855855
"documentation": null,
856856
"sortText": "A",
857857
"insertText": "(~on, ~off=?, ${1:variant}) => {$0}",
@@ -871,7 +871,7 @@ Path fnTakingCallback
871871
"label": "(v1, v2, v3) => {}",
872872
"kind": 12,
873873
"tags": [],
874-
"detail": "(. bool, option<bool>, bool) => unit",
874+
"detail": "(bool, option<bool>, bool) => unit",
875875
"documentation": null,
876876
"sortText": "A",
877877
"insertText": "(${1:v1}, ${2:v2}, ${3:v3}) => {$0}",
@@ -891,7 +891,7 @@ Path fnTakingCallback
891891
"label": "(~on=?, ~off=?, ()) => {}",
892892
"kind": 12,
893893
"tags": [],
894-
"detail": "(. ~on: bool=?, ~off: bool=?, unit) => int",
894+
"detail": "(~on: bool=?, ~off: bool=?, unit) => int",
895895
"documentation": null,
896896
"sortText": "A",
897897
"insertText": "(~on=?, ~off=?, ()) => {$0}",
@@ -967,7 +967,7 @@ Path takesCb
967967
"label": "someTyp => {}",
968968
"kind": 12,
969969
"tags": [],
970-
"detail": "(. someTyp) => 'a",
970+
"detail": "someTyp => 'a",
971971
"documentation": null,
972972
"sortText": "A",
973973
"insertText": "${1:someTyp} => {$0}",
@@ -987,7 +987,7 @@ Path takesCb2
987987
"label": "environment => {}",
988988
"kind": 12,
989989
"tags": [],
990-
"detail": "(. Environment.t) => 'a",
990+
"detail": "Environment.t => 'a",
991991
"documentation": null,
992992
"sortText": "A",
993993
"insertText": "${1:environment} => {$0}",
@@ -1007,7 +1007,7 @@ Path takesCb3
10071007
"label": "apiCallResult => {}",
10081008
"kind": 12,
10091009
"tags": [],
1010-
"detail": "(. apiCallResult) => 'a",
1010+
"detail": "apiCallResult => 'a",
10111011
"documentation": null,
10121012
"sortText": "A",
10131013
"insertText": "${1:apiCallResult} => {$0}",
@@ -1027,7 +1027,7 @@ Path takesCb4
10271027
"label": "apiCallResult => {}",
10281028
"kind": 12,
10291029
"tags": [],
1030-
"detail": "(. option<apiCallResult>) => 'a",
1030+
"detail": "option<apiCallResult> => 'a",
10311031
"documentation": null,
10321032
"sortText": "A",
10331033
"insertText": "${1:apiCallResult} => {$0}",
@@ -1047,7 +1047,7 @@ Path takesCb5
10471047
"label": "apiCallResults => {}",
10481048
"kind": 12,
10491049
"tags": [],
1050-
"detail": "(. array<option<apiCallResult>>) => 'a",
1050+
"detail": "array<option<apiCallResult>> => 'a",
10511051
"documentation": null,
10521052
"sortText": "A",
10531053
"insertText": "${1:apiCallResults} => {$0}",
@@ -1067,7 +1067,7 @@ Path commitLocalUpdate
10671067
"label": "recordSourceSelectorProxy => {}",
10681068
"kind": 12,
10691069
"tags": [],
1070-
"detail": "(. RecordSourceSelectorProxy.t) => unit",
1070+
"detail": "RecordSourceSelectorProxy.t => unit",
10711071
"documentation": null,
10721072
"sortText": "A",
10731073
"insertText": "${1:recordSourceSelectorProxy} => {$0}",

Diff for: analysis/tests/src/expected/CompletionInferValues.res.txt

+22-22
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ Path Belt.Int.f
1515
"label": "Belt.Int.fromString",
1616
"kind": 12,
1717
"tags": [],
18-
"detail": "(. string) => option<int>",
18+
"detail": "string => option<int>",
1919
"documentation": {"kind": "markdown", "value": "\n Converts a given `string` to an `int`. Returns `Some(int)` when the input is a number, `None` otherwise.\n\n ```res example\n Js.log(Belt.Int.fromString(\"1\") === Some(1)) /* true */\n ```\n"}
2020
}, {
2121
"label": "Belt.Int.fromFloat",
2222
"kind": 12,
2323
"tags": [],
24-
"detail": "(. float) => int",
24+
"detail": "float => int",
2525
"documentation": {"kind": "markdown", "value": "\n Converts a given `float` to an `int`.\n\n ```res example\n Js.log(Belt.Int.fromFloat(1.0) === 1) /* true */\n ```\n"}
2626
}]
2727

@@ -258,13 +258,13 @@ Path Belt.Int.t
258258
"label": "Belt.Int.toString",
259259
"kind": 12,
260260
"tags": [],
261-
"detail": "(. int) => string",
261+
"detail": "int => string",
262262
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n ```res example\n Js.log(Belt.Int.toString(1) === \"1\") /* true */\n ```\n"}
263263
}, {
264264
"label": "Belt.Int.toFloat",
265265
"kind": 12,
266266
"tags": [],
267-
"detail": "(. int) => float",
267+
"detail": "int => float",
268268
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `float`.\n\n ```res example\n Js.log(Belt.Int.toFloat(1) === 1.0) /* true */\n ```\n"}
269269
}]
270270

@@ -291,25 +291,25 @@ Path Js.String2.spl
291291
"label": "Js.String2.splitAtMost",
292292
"kind": 12,
293293
"tags": [],
294-
"detail": "(. t, t, ~limit: int) => array<t>",
294+
"detail": "(t, t, ~limit: int) => array<t>",
295295
"documentation": {"kind": "markdown", "value": "\n `splitAtMost delimiter ~limit: n str` splits the given `str` at every occurrence of `delimiter` and returns an array of the first `n` resulting substrings. If `n` is negative or greater than the number of substrings, the array will contain all the substrings.\n\n```\nsplitAtMost \"ant/bee/cat/dog/elk\" \"/\" ~limit: 3 = [|\"ant\"; \"bee\"; \"cat\"|];;\nsplitAtMost \"ant/bee/cat/dog/elk\" \"/\" ~limit: 0 = [| |];;\nsplitAtMost \"ant/bee/cat/dog/elk\" \"/\" ~limit: 9 = [|\"ant\"; \"bee\"; \"cat\"; \"dog\"; \"elk\"|];;\n```\n"}
296296
}, {
297297
"label": "Js.String2.splitByRe",
298298
"kind": 12,
299299
"tags": [],
300-
"detail": "(. t, Js_re.t) => array<option<t>>",
300+
"detail": "(t, Js_re.t) => array<option<t>>",
301301
"documentation": {"kind": "markdown", "value": "\n`splitByRe(str, regex)` splits the given `str` at every occurrence of `regex`\nand returns an array of the resulting substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n```res example\nJs.String2.splitByRe(\"art; bed , cog ;dad\", %re(\"/\\s*[,;]\\s*TODO/\")) == [\n Some(\"art\"),\n Some(\"bed\"),\n Some(\"cog\"),\n Some(\"dad\"),\n ]\n```\n"}
302302
}, {
303303
"label": "Js.String2.split",
304304
"kind": 12,
305305
"tags": [],
306-
"detail": "(. t, t) => array<t>",
306+
"detail": "(t, t) => array<t>",
307307
"documentation": {"kind": "markdown", "value": "\n`split(str, delimiter)` splits the given `str` at every occurrence of\n`delimiter` and returns an array of the resulting substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n```res example\nJs.String2.split(\"2018-01-02\", \"-\") == [\"2018\", \"01\", \"02\"]\nJs.String2.split(\"a,b,,c\", \",\") == [\"a\", \"b\", \"\", \"c\"]\nJs.String2.split(\"good::bad as great::awful\", \"::\") == [\"good\", \"bad as great\", \"awful\"]\nJs.String2.split(\"has-no-delimiter\", \";\") == [\"has-no-delimiter\"]\n```\n"}
308308
}, {
309309
"label": "Js.String2.splitByReAtMost",
310310
"kind": 12,
311311
"tags": [],
312-
"detail": "(. t, Js_re.t, ~limit: int) => array<option<t>>",
312+
"detail": "(t, Js_re.t, ~limit: int) => array<option<t>>",
313313
"documentation": {"kind": "markdown", "value": "\n`splitByReAtMost(str, regex, ~limit:n)` splits the given `str` at every\noccurrence of `regex` and returns an array of the first `n` resulting\nsubstrings. If `n` is negative or greater than the number of substrings, the\narray will contain all the substrings.\n\nSee [`String.split`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split)\non MDN.\n\n```res example\nJs.String2.splitByReAtMost(\"one: two: three: four\", %re(\"/\\s*:\\s*TODO/\"), ~limit=3) == [\n Some(\"one\"),\n Some(\"two\"),\n Some(\"three\"),\n ]\n\nJs.String2.splitByReAtMost(\"one: two: three: four\", %re(\"/\\s*:\\s*TODO/\"), ~limit=0) == []\n\nJs.String2.splitByReAtMost(\"one: two: three: four\", %re(\"/\\s*:\\s*TODO/\"), ~limit=8) == [\n Some(\"one\"),\n Some(\"two\"),\n Some(\"three\"),\n Some(\"four\"),\n ]\n```\n"}
314314
}]
315315

@@ -336,13 +336,13 @@ Path Js.Array2.ma
336336
"label": "Js.Array2.mapi",
337337
"kind": 12,
338338
"tags": [],
339-
"detail": "(. t<'a>, (. 'a, int) => 'b) => t<'b>",
339+
"detail": "(t<'a>, ('a, int) => 'b) => t<'b>",
340340
"documentation": {"kind": "markdown", "value": "\nApplies the function (the second argument) to each item in the array, returning\na new array. The function acceps two arguments: an item from the array and its\nindex number. The result array does not have to have elements of the same type\nas the input array. See\n[`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\non MDN.\n\n```res example\n// multiply each item in array by its position\nlet product = (item, index) => item * index\nJs.Array2.mapi([10, 11, 12], product) == [0, 11, 24]\n```\n"}
341341
}, {
342342
"label": "Js.Array2.map",
343343
"kind": 12,
344344
"tags": [],
345-
"detail": "(. t<'a>, (. 'a) => 'b) => t<'b>",
345+
"detail": "(t<'a>, 'a => 'b) => t<'b>",
346346
"documentation": {"kind": "markdown", "value": "\nApplies the function (the second argument) to each item in the array, returning\na new array. The result array does not have to have elements of the same type\nas the input array. See\n[`Array.map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map)\non MDN.\n\n```res example\nJs.Array2.map([12, 4, 8], x => x * x) == [144, 16, 64]\nJs.Array2.map([\"animal\", \"vegetable\", \"mineral\"], Js.String.length) == [6, 9, 7]\n```\n"}
347347
}]
348348

@@ -468,13 +468,13 @@ Path Js.String2.slic
468468
"label": "Js.String2.sliceToEnd",
469469
"kind": 12,
470470
"tags": [],
471-
"detail": "(. t, ~from: int) => t",
471+
"detail": "(t, ~from: int) => t",
472472
"documentation": {"kind": "markdown", "value": "\n`sliceToEnd(str, from:n)` returns the substring of `str` starting at character\n`n` to the end of the string.\n- If `n` is negative, then it is evaluated as `length(str - n)`.\n- If `n` is greater than the length of `str`, then sliceToEnd returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.sliceToEnd(\"abcdefg\", ~from=4) == \"efg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=-2) == \"fg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=7) == \"\"\n```\n"}
473473
}, {
474474
"label": "Js.String2.slice",
475475
"kind": 12,
476476
"tags": [],
477-
"detail": "(. t, ~from: int, ~to_: int) => t",
477+
"detail": "(t, ~from: int, ~to_: int) => t",
478478
"documentation": {"kind": "markdown", "value": "\n`slice(str, from:n1, to_:n2)` returns the substring of `str` starting at\ncharacter `n1` up to but not including `n2`.\n- If either `n1` or `n2` is negative, then it is evaluated as `length(str - n1)` or `length(str - n2)`.\n- If `n2` is greater than the length of `str`, then it is treated as `length(str)`.\n- If `n1` is greater than `n2`, slice returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=5) == \"cde\"\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=9) == \"cdefg\"\nJs.String2.slice(\"abcdefg\", ~from=-4, ~to_=-2) == \"de\"\nJs.String2.slice(\"abcdefg\", ~from=5, ~to_=1) == \"\"\n```\n"}
479479
}]
480480

@@ -497,7 +497,7 @@ Path Belt.Int.toS
497497
"label": "Belt.Int.toString",
498498
"kind": 12,
499499
"tags": [],
500-
"detail": "(. int) => string",
500+
"detail": "int => string",
501501
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n ```res example\n Js.log(Belt.Int.toString(1) === \"1\") /* true */\n ```\n"}
502502
}]
503503

@@ -523,7 +523,7 @@ Path Belt.Int.toS
523523
"label": "Belt.Int.toString",
524524
"kind": 12,
525525
"tags": [],
526-
"detail": "(. int) => string",
526+
"detail": "int => string",
527527
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n ```res example\n Js.log(Belt.Int.toString(1) === \"1\") /* true */\n ```\n"}
528528
}]
529529

@@ -550,7 +550,7 @@ Path Belt.Int.toS
550550
"label": "Belt.Int.toString",
551551
"kind": 12,
552552
"tags": [],
553-
"detail": "(. int) => string",
553+
"detail": "int => string",
554554
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n ```res example\n Js.log(Belt.Int.toString(1) === \"1\") /* true */\n ```\n"}
555555
}]
556556

@@ -573,13 +573,13 @@ Path Js.String2.slic
573573
"label": "Js.String2.sliceToEnd",
574574
"kind": 12,
575575
"tags": [],
576-
"detail": "(. t, ~from: int) => t",
576+
"detail": "(t, ~from: int) => t",
577577
"documentation": {"kind": "markdown", "value": "\n`sliceToEnd(str, from:n)` returns the substring of `str` starting at character\n`n` to the end of the string.\n- If `n` is negative, then it is evaluated as `length(str - n)`.\n- If `n` is greater than the length of `str`, then sliceToEnd returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.sliceToEnd(\"abcdefg\", ~from=4) == \"efg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=-2) == \"fg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=7) == \"\"\n```\n"}
578578
}, {
579579
"label": "Js.String2.slice",
580580
"kind": 12,
581581
"tags": [],
582-
"detail": "(. t, ~from: int, ~to_: int) => t",
582+
"detail": "(t, ~from: int, ~to_: int) => t",
583583
"documentation": {"kind": "markdown", "value": "\n`slice(str, from:n1, to_:n2)` returns the substring of `str` starting at\ncharacter `n1` up to but not including `n2`.\n- If either `n1` or `n2` is negative, then it is evaluated as `length(str - n1)` or `length(str - n2)`.\n- If `n2` is greater than the length of `str`, then it is treated as `length(str)`.\n- If `n1` is greater than `n2`, slice returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=5) == \"cde\"\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=9) == \"cdefg\"\nJs.String2.slice(\"abcdefg\", ~from=-4, ~to_=-2) == \"de\"\nJs.String2.slice(\"abcdefg\", ~from=5, ~to_=1) == \"\"\n```\n"}
584584
}]
585585

@@ -602,13 +602,13 @@ Path Js.String2.slic
602602
"label": "Js.String2.sliceToEnd",
603603
"kind": 12,
604604
"tags": [],
605-
"detail": "(. t, ~from: int) => t",
605+
"detail": "(t, ~from: int) => t",
606606
"documentation": {"kind": "markdown", "value": "\n`sliceToEnd(str, from:n)` returns the substring of `str` starting at character\n`n` to the end of the string.\n- If `n` is negative, then it is evaluated as `length(str - n)`.\n- If `n` is greater than the length of `str`, then sliceToEnd returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.sliceToEnd(\"abcdefg\", ~from=4) == \"efg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=-2) == \"fg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=7) == \"\"\n```\n"}
607607
}, {
608608
"label": "Js.String2.slice",
609609
"kind": 12,
610610
"tags": [],
611-
"detail": "(. t, ~from: int, ~to_: int) => t",
611+
"detail": "(t, ~from: int, ~to_: int) => t",
612612
"documentation": {"kind": "markdown", "value": "\n`slice(str, from:n1, to_:n2)` returns the substring of `str` starting at\ncharacter `n1` up to but not including `n2`.\n- If either `n1` or `n2` is negative, then it is evaluated as `length(str - n1)` or `length(str - n2)`.\n- If `n2` is greater than the length of `str`, then it is treated as `length(str)`.\n- If `n1` is greater than `n2`, slice returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=5) == \"cde\"\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=9) == \"cdefg\"\nJs.String2.slice(\"abcdefg\", ~from=-4, ~to_=-2) == \"de\"\nJs.String2.slice(\"abcdefg\", ~from=5, ~to_=1) == \"\"\n```\n"}
613613
}]
614614

@@ -631,13 +631,13 @@ Path Js.String2.slic
631631
"label": "Js.String2.sliceToEnd",
632632
"kind": 12,
633633
"tags": [],
634-
"detail": "(. t, ~from: int) => t",
634+
"detail": "(t, ~from: int) => t",
635635
"documentation": {"kind": "markdown", "value": "\n`sliceToEnd(str, from:n)` returns the substring of `str` starting at character\n`n` to the end of the string.\n- If `n` is negative, then it is evaluated as `length(str - n)`.\n- If `n` is greater than the length of `str`, then sliceToEnd returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.sliceToEnd(\"abcdefg\", ~from=4) == \"efg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=-2) == \"fg\"\nJs.String2.sliceToEnd(\"abcdefg\", ~from=7) == \"\"\n```\n"}
636636
}, {
637637
"label": "Js.String2.slice",
638638
"kind": 12,
639639
"tags": [],
640-
"detail": "(. t, ~from: int, ~to_: int) => t",
640+
"detail": "(t, ~from: int, ~to_: int) => t",
641641
"documentation": {"kind": "markdown", "value": "\n`slice(str, from:n1, to_:n2)` returns the substring of `str` starting at\ncharacter `n1` up to but not including `n2`.\n- If either `n1` or `n2` is negative, then it is evaluated as `length(str - n1)` or `length(str - n2)`.\n- If `n2` is greater than the length of `str`, then it is treated as `length(str)`.\n- If `n1` is greater than `n2`, slice returns the empty string.\n\nSee [`String.slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice) on MDN.\n\n```res example\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=5) == \"cde\"\nJs.String2.slice(\"abcdefg\", ~from=2, ~to_=9) == \"cdefg\"\nJs.String2.slice(\"abcdefg\", ~from=-4, ~to_=-2) == \"de\"\nJs.String2.slice(\"abcdefg\", ~from=5, ~to_=1) == \"\"\n```\n"}
642642
}]
643643

@@ -687,7 +687,7 @@ Path Belt.Int.toSt
687687
"label": "Belt.Int.toString",
688688
"kind": 12,
689689
"tags": [],
690-
"detail": "(. int) => string",
690+
"detail": "int => string",
691691
"documentation": {"kind": "markdown", "value": "\n Converts a given `int` to a `string`. Uses the JavaScript `String` constructor under the hood.\n\n ```res example\n Js.log(Belt.Int.toString(1) === \"1\") /* true */\n ```\n"}
692692
}]
693693

0 commit comments

Comments
 (0)