Skip to content

Commit 9d612c9

Browse files
committed
use return decorator for captureOwnerStack
1 parent db7efa5 commit 9d612c9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/React.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,5 +452,5 @@ external useOptimistic: (
452452
@module("react")
453453
external act: (unit => promise<unit>) => promise<unit> = "act"
454454

455-
@module("react")
456-
external captureOwnerStack: unit => Js.nullable<string> = "captureOwnerStack"
455+
@module("react") @return(nullable)
456+
external captureOwnerStack: unit => option<string> = "captureOwnerStack"

0 commit comments

Comments
 (0)