Skip to content

Commit 25a3f8d

Browse files
committed
Deprecate JSON.Classify.classify
1 parent 55d7337 commit 25a3f8d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

runtime/Stdlib_JSON.res

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ module Classify = {
5757
| Object(dict<t>)
5858
| Array(array<t>)
5959

60+
@deprecated("Directly switch on the JSON object instead") @raises @val
6061
let classify = value => {
6162
switch _internalClass(value) {
6263
| "[object Boolean]" => Bool(_asBool(value))

runtime/Stdlib_JSON.resi

+3
Original file line numberDiff line numberDiff line change
@@ -630,6 +630,9 @@ module Classify: {
630630
// Number(42)
631631
```
632632
*/
633+
@deprecated("Directly switch on the JSON object instead")
634+
@raises
635+
@val
633636
let classify: 'a => t
634637
}
635638

0 commit comments

Comments
 (0)