We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55d7337 commit 25a3f8dCopy full SHA for 25a3f8d
runtime/Stdlib_JSON.res
@@ -57,6 +57,7 @@ module Classify = {
57
| Object(dict<t>)
58
| Array(array<t>)
59
60
+ @deprecated("Directly switch on the JSON object instead") @raises @val
61
let classify = value => {
62
switch _internalClass(value) {
63
| "[object Boolean]" => Bool(_asBool(value))
runtime/Stdlib_JSON.resi
@@ -630,6 +630,9 @@ module Classify: {
630
// Number(42)
631
```
632
*/
633
+ @deprecated("Directly switch on the JSON object instead")
634
+ @raises
635
+ @val
636
let classify: 'a => t
637
}
638
0 commit comments