Skip to content

Commit 09d44ee

Browse files
committed
remove unused @throws annotations
1 parent 4f5313a commit 09d44ee

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

packages/@rescript/runtime/Stdlib_JSON.resi

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ try {
6060
6161
- Throws a SyntaxError (Exn.t) if the string isn't valid JSON.
6262
*/
63-
@throws(Exn.t) @val
63+
@val
6464
external parseOrThrow: (string, ~reviver: (string, t) => t=?) => t = "JSON.parse"
6565

6666
/**
@@ -106,7 +106,7 @@ try {
106106
107107
- Throws a SyntaxError (Exn.t) if the string isn't valid JSON.
108108
*/
109-
@deprecated("Use `parseOrThrow` instead") @throws(Exn.t) @val
109+
@deprecated("Use `parseOrThrow` instead") @val
110110
external parseExn: (string, ~reviver: (string, t) => t=?) => t = "JSON.parse"
111111

112112
/**
@@ -142,7 +142,7 @@ try {
142142
143143
- Throws a SyntaxError if the string is not a valid JSON.
144144
*/
145-
@deprecated("Use `parseOrThrow` with optional parameter instead") @throws(Exn.t) @val
145+
@deprecated("Use `parseOrThrow` with optional parameter instead") @val
146146
external parseExnWithReviver: (string, (string, t) => t) => t = "JSON.parse"
147147

148148
/**
@@ -399,7 +399,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny {
399399
- Throws a TypeError if the value contains circular references.
400400
- Throws a TypeError if the value contains `BigInt`s.
401401
*/
402-
@throws(Exn.t) @val
402+
@val
403403
external stringifyAny: ('a, ~replacer: replacer=?, ~space: int=?) => option<string> =
404404
"JSON.stringify"
405405

@@ -441,7 +441,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny {
441441
- Throws a TypeError if the value contains circular references.
442442
- Throws a TypeError if the value contains `BigInt`s.
443443
*/
444-
@deprecated("Use `stringifyAny` with optional parameter instead") @throws(Exn.t) @val
444+
@deprecated("Use `stringifyAny` with optional parameter instead") @val
445445
external stringifyAnyWithIndent: ('a, @as(json`null`) _, int) => option<string> = "JSON.stringify"
446446

447447
/**
@@ -487,7 +487,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny {
487487
- Throws a TypeError if the value contains circular references.
488488
- Throws a TypeError if the value contains `BigInt`s.
489489
*/
490-
@deprecated("Use `stringifyAny` with optional parameter instead") @throws @val
490+
@deprecated("Use `stringifyAny` with optional parameter instead") @val
491491
external stringifyAnyWithReplacer: ('a, (string, t) => t) => option<string> = "JSON.stringify"
492492

493493
/**
@@ -534,7 +534,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny {
534534
- Throws a TypeError if the value contains circular references.
535535
- Throws a TypeError if the value contains `BigInt`s.
536536
*/
537-
@deprecated("Use `stringifyAny` with optional parameters instead") @throws @val
537+
@deprecated("Use `stringifyAny` with optional parameters instead") @val
538538
external stringifyAnyWithReplacerAndIndent: ('a, (string, t) => t, int) => option<string> =
539539
"JSON.stringify"
540540

@@ -571,7 +571,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny {
571571
- Throws a TypeError if the value contains circular references.
572572
- Throws a TypeError if the value contains `BigInt`s.
573573
*/
574-
@deprecated("Use `stringifyAny` with optional parameter instead") @throws @val
574+
@deprecated("Use `stringifyAny` with optional parameter instead") @val
575575
external stringifyAnyWithFilter: ('a, array<string>) => string = "JSON.stringify"
576576

577577
/**
@@ -621,7 +621,7 @@ switch BigInt.fromInt(0)->JSON.stringifyAny {
621621
- Throws a TypeError if the value contains circular references.
622622
- Throws a TypeError if the value contains `BigInt`s.
623623
*/
624-
@deprecated("Use `stringifyAny` with optional parameters instead") @throws @val
624+
@deprecated("Use `stringifyAny` with optional parameters instead") @val
625625
external stringifyAnyWithFilterAndIndent: ('a, array<string>, int) => string = "JSON.stringify"
626626

627627
module Classify: {

0 commit comments

Comments
 (0)