|
60 | 60 |
|
61 | 61 | - Throws a SyntaxError (Exn.t) if the string isn't valid JSON. |
62 | 62 | */ |
63 | | -@throws(Exn.t) @val |
| 63 | +@val |
64 | 64 | external parseOrThrow: (string, ~reviver: (string, t) => t=?) => t = "JSON.parse" |
65 | 65 |
|
66 | 66 | /** |
@@ -106,7 +106,7 @@ try { |
106 | 106 |
|
107 | 107 | - Throws a SyntaxError (Exn.t) if the string isn't valid JSON. |
108 | 108 | */ |
109 | | -@deprecated("Use `parseOrThrow` instead") @throws(Exn.t) @val |
| 109 | +@deprecated("Use `parseOrThrow` instead") @val |
110 | 110 | external parseExn: (string, ~reviver: (string, t) => t=?) => t = "JSON.parse" |
111 | 111 |
|
112 | 112 | /** |
@@ -142,7 +142,7 @@ try { |
142 | 142 |
|
143 | 143 | - Throws a SyntaxError if the string is not a valid JSON. |
144 | 144 | */ |
145 | | -@deprecated("Use `parseOrThrow` with optional parameter instead") @throws(Exn.t) @val |
| 145 | +@deprecated("Use `parseOrThrow` with optional parameter instead") @val |
146 | 146 | external parseExnWithReviver: (string, (string, t) => t) => t = "JSON.parse" |
147 | 147 |
|
148 | 148 | /** |
@@ -399,7 +399,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny { |
399 | 399 | - Throws a TypeError if the value contains circular references. |
400 | 400 | - Throws a TypeError if the value contains `BigInt`s. |
401 | 401 | */ |
402 | | -@throws(Exn.t) @val |
| 402 | +@val |
403 | 403 | external stringifyAny: ('a, ~replacer: replacer=?, ~space: int=?) => option<string> = |
404 | 404 | "JSON.stringify" |
405 | 405 |
|
@@ -441,7 +441,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny { |
441 | 441 | - Throws a TypeError if the value contains circular references. |
442 | 442 | - Throws a TypeError if the value contains `BigInt`s. |
443 | 443 | */ |
444 | | -@deprecated("Use `stringifyAny` with optional parameter instead") @throws(Exn.t) @val |
| 444 | +@deprecated("Use `stringifyAny` with optional parameter instead") @val |
445 | 445 | external stringifyAnyWithIndent: ('a, @as(json`null`) _, int) => option<string> = "JSON.stringify" |
446 | 446 |
|
447 | 447 | /** |
@@ -487,7 +487,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny { |
487 | 487 | - Throws a TypeError if the value contains circular references. |
488 | 488 | - Throws a TypeError if the value contains `BigInt`s. |
489 | 489 | */ |
490 | | -@deprecated("Use `stringifyAny` with optional parameter instead") @throws @val |
| 490 | +@deprecated("Use `stringifyAny` with optional parameter instead") @val |
491 | 491 | external stringifyAnyWithReplacer: ('a, (string, t) => t) => option<string> = "JSON.stringify" |
492 | 492 |
|
493 | 493 | /** |
@@ -534,7 +534,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny { |
534 | 534 | - Throws a TypeError if the value contains circular references. |
535 | 535 | - Throws a TypeError if the value contains `BigInt`s. |
536 | 536 | */ |
537 | | -@deprecated("Use `stringifyAny` with optional parameters instead") @throws @val |
| 537 | +@deprecated("Use `stringifyAny` with optional parameters instead") @val |
538 | 538 | external stringifyAnyWithReplacerAndIndent: ('a, (string, t) => t, int) => option<string> = |
539 | 539 | "JSON.stringify" |
540 | 540 |
|
@@ -571,7 +571,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny { |
571 | 571 | - Throws a TypeError if the value contains circular references. |
572 | 572 | - Throws a TypeError if the value contains `BigInt`s. |
573 | 573 | */ |
574 | | -@deprecated("Use `stringifyAny` with optional parameter instead") @throws @val |
| 574 | +@deprecated("Use `stringifyAny` with optional parameter instead") @val |
575 | 575 | external stringifyAnyWithFilter: ('a, array<string>) => string = "JSON.stringify" |
576 | 576 |
|
577 | 577 | /** |
@@ -621,7 +621,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny { |
621 | 621 | - Throws a TypeError if the value contains circular references. |
622 | 622 | - Throws a TypeError if the value contains `BigInt`s. |
623 | 623 | */ |
624 | | -@deprecated("Use `stringifyAny` with optional parameters instead") @throws @val |
| 624 | +@deprecated("Use `stringifyAny` with optional parameters instead") @val |
625 | 625 | external stringifyAnyWithFilterAndIndent: ('a, array<string>, int) => string = "JSON.stringify" |
626 | 626 |
|
627 | 627 | module Classify: { |
|
0 commit comments