Skip to content

Commit

Permalink
feat: Improved typing of children prop
Browse files Browse the repository at this point in the history
Related #43
  • Loading branch information
bfanger committed Nov 2, 2024
1 parent 717975d commit bcefa85
Show file tree
Hide file tree
Showing 5 changed files with 504 additions and 526 deletions.
6 changes: 6 additions & 0 deletions docs/migration-to-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ When using Typescript, in the `<script lang="ts">` section add:
const react = sveltify({ MyComponent });
```

If you want to use sveltify without importing it, in `src/app.d.ts` add:

```ts
/// <reference types="svelte-preprocess-react" />`
```

## ESLint

The preprocessor will autoimport sveltify and can also generate the react object based on usage of `<react.* />` tags.
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"type": "git",
"url": "https://github.com/bfanger/svelte-preprocess-react.git"
},
"version": "2.0.2",
"version": "2.0.3",
"license": "MIT",
"type": "module",
"scripts": {
Expand Down Expand Up @@ -44,25 +44,25 @@
]
},
"devDependencies": {
"@playwright/test": "^1.48.1",
"@sveltejs/adapter-static": "^3.0.5",
"@sveltejs/kit": "^2.7.2",
"@sveltejs/package": "^2.3.5",
"@playwright/test": "^1.48.2",
"@sveltejs/adapter-static": "^3.0.6",
"@sveltejs/kit": "^2.7.4",
"@sveltejs/package": "^2.3.7",
"@sveltejs/vite-plugin-svelte": "4.0.0",
"@testing-library/react": "^16.0.1",
"@testing-library/svelte": "^5.2.4",
"@types/node": "^22.7.7",
"@types/react": "^18.3.11",
"@types/node": "^22.8.6",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"autoprefixer": "^10.4.20",
"concurrently": "^9.0.1",
"eslint": "^9.13.0",
"eslint": "^9.14.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-only-warn": "^1.1.0",
"eslint-plugin-react": "^7.37.1",
"eslint-plugin-svelte": "^2.45.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-svelte": "^2.46.0",
"globals": "^15.11.0",
"happy-dom": "^15.7.4",
"happy-dom": "^15.8.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"postcss": "^8.4.47",
Expand All @@ -71,15 +71,15 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-youtube": "^10.1.0",
"svelte": "5.0.2",
"svelte": "5.1.9",
"svelte-check": "^4.0.5",
"svelte-youtube-lite": "^0.5.1",
"svelte-youtube-lite": "0.5",
"svelte2tsx": "^0.7.22",
"typescript": "^5.6.3",
"typescript-eslint": "^8.10.0",
"vite": "^5.4.9",
"typescript-eslint": "^8.12.2",
"vite": "^5.4.10",
"vite-tsconfig-paths": "^5.0.1",
"vitest": "^2.1.3"
"vitest": "^2.1.4"
},
"dependencies": {
"estree-walker": "^3.0.3",
Expand Down
Loading

0 comments on commit bcefa85

Please sign in to comment.