Skip to content

Commit

Permalink
Fix useSharedValue type definition in docs (software-mansion#6260)
Browse files Browse the repository at this point in the history
## Summary

Fixes `useSharedValue` type definition in docs after changes in the
software-mansion#4300 PR.

## Test plan

No tests :)
  • Loading branch information
MatiPl01 authored Jul 15, 2024
1 parent d283990 commit daaa0a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/docs-reanimated/docs/core/useSharedValue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ interface SharedValue<Value = unknown> {
) => void;
}

function useSharedValue<Value>(
initialValue: Value,
oneWayReadsOnly?: boolean
): SharedValue<Value>;
function useSharedValue<Value>(initialValue: Value): SharedValue<Value>;
```

</details>
Expand Down

0 comments on commit daaa0a1

Please sign in to comment.