Skip to content

Commit 961f544

Browse files
fix React hooks types
1 parent 2c0a54f commit 961f544

File tree

3 files changed

+122
-3829
lines changed

3 files changed

+122
-3829
lines changed

.changeset/rare-zoos-walk.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@journeyapps/powersync-react': patch
3+
---
4+
5+
Fixed: Added correct typings for React hooks. Previously hooks would return `any`.

packages/powersync-react/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"react": "*"
3434
},
3535
"devDependencies": {
36+
"@types/react": "^18.2.34",
3637
"react": "18.2.0",
3738
"typescript": "^5.1.3"
3839
}

0 commit comments

Comments
 (0)