Merge remote-tracking branch 'upstream/dev' into dev

This commit is contained in:
sadeghbarati 2024-08-20 15:38:35 +03:30
commit 1cf486cb94
3 changed files with 8 additions and 2 deletions

View File

@ -91,6 +91,12 @@ Install `tailwindcss` and its peer dependencies, then generate your `tailwind.co
### Edit tsconfig/jsconfig.json ### Edit tsconfig/jsconfig.json
<Callout>
If you're using TypeScript, the current version of Vite splits configuration into three files, requiring the same change for `tsconfig.app.json`.
</Callout>
Add the code below to the compilerOptions of your `tsconfig.json` or `jsconfig.json` so your app can resolve paths without error Add the code below to the compilerOptions of your `tsconfig.json` or `jsconfig.json` so your app can resolve paths without error
```json {4-7} ```json {4-7}

View File

@ -17,7 +17,7 @@ const props = defineProps<{
}>() }>()
const emits = defineEmits<{ const emits = defineEmits<{
submit: [event: GenericObject] submit: [event: z.infer<T>]
}>() }>()
const { dependencies } = toRefs(props) const { dependencies } = toRefs(props)

View File

@ -17,7 +17,7 @@ const props = defineProps<{
}>() }>()
const emits = defineEmits<{ const emits = defineEmits<{
submit: [event: GenericObject] submit: [event: z.infer<T>]
}>() }>()
const { dependencies } = toRefs(props) const { dependencies } = toRefs(props)