Skip to content

Commit f7c84cf

Browse files
chore: update react types
1 parent 9f08712 commit f7c84cf

File tree

3 files changed

+3300
-3154
lines changed

3 files changed

+3300
-3154
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default function YourComponent() {
235235
| Prop | Type | Required | Default Value | Description |
236236
| -------- | :-------: | :------: | :-----------: | ---------------------------------------------- |
237237
| data | Array || undefined | Used for looping over the data and rendering the children |
238-
| children | ReactNode || null | Renders the `JSX` returned from child function |
238+
| children | ((item: T[number], i: number) => JSX.Element) | null || null | Renders the `JSX` returned from child function |
239239

240240
### Working
241241

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,15 @@
4242
"dependencies": {
4343
"react": "^18.2.0"
4444
},
45+
"packageManager": "pnpm@8.12.0",
4546
"devDependencies": {
4647
"@changesets/cli": "^2.26.1",
4748
"@size-limit/preset-small-lib": "^8.2.4",
4849
"@testing-library/jest-dom": "^5.16.5",
4950
"@testing-library/react": "^14.0.0",
5051
"@types/node": "^18.15.13",
51-
"@types/react": "^18.0.38",
52-
"@types/react-dom": "^18.0.11",
52+
"@types/react": "^18.2.0",
53+
"@types/react-dom": "^18.2.0",
5354
"@types/testing-library__jest-dom": "^5.14.5",
5455
"@vitejs/plugin-react": "^4.0.0",
5556
"@vitest/coverage-istanbul": "^0.30.1",

0 commit comments

Comments
 (0)