Skip to content

Commit

Permalink
fix: use correct type for use_callback
Browse files Browse the repository at this point in the history
  • Loading branch information
ghivert committed Aug 21, 2024
1 parent d3a3ee3 commit 4e565ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redraw/src/redraw.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ pub fn suspense(props: Suspense, children: List(Component)) -> Component
///
/// [Documentation](https://react.dev/reference/react/useCallback)
@external(javascript, "react", "useCallback")
pub fn use_callback(fun: function, dependencies: dependencies) -> a
pub fn use_callback(fun: function, dependencies: dependencies) -> function

/// Let you add a label to a custom Hook in React DevTools.
///
Expand Down

0 comments on commit 4e565ad

Please sign in to comment.