Skip to content

Commit

Permalink
ci: apply automated fixes and generate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Jan 13, 2025
1 parent 2b52081 commit 2f0f6a1
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 30 deletions.
18 changes: 9 additions & 9 deletions packages/svelte-form/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
<title>Svelte</title>
</head>
<body>
<div id="app"></div>
<script type="module">
import * as ts from './src/index.ts';
import { mount } from 'svelte';
import App from './tests/simple.svelte';
<div id="app"></div>
<script type="module">
import * as ts from './src/index.ts'
import { mount } from 'svelte'
import App from './tests/simple.svelte'

const app = mount(App, {
target: document.getElementById('app')
});
</script>
const app = mount(App, {
target: document.getElementById('app'),
})
</script>
</body>
</html>
16 changes: 2 additions & 14 deletions packages/svelte-form/src/createField.svelte.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,10 @@ export type CreateField<
TData extends DeepValue<TParentData, TName> = DeepValue<TParentData, TName>,
>(
opts: () => { name: Narrow<TName> } & Omit<
FieldApiOptions<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
>,
FieldApiOptions<TParentData, TName, TFieldValidator, TFormValidator, TData>,
'form'
>,
) => FieldApi<
TParentData,
TName,
TFieldValidator,
TFormValidator,
TData
> &
) => FieldApi<TParentData, TName, TFieldValidator, TFormValidator, TData> &
SvelteFieldApi<TParentData, TFormValidator>

export function createField<
Expand Down
4 changes: 2 additions & 2 deletions packages/svelte-form/src/createForm.svelte.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { FormApi } from '@tanstack/form-core'
import { onMount } from 'svelte'
import { createField } from './createField.svelte.js'
import Field from './Field.svelte';
import Field from './Field.svelte'
import type { FormOptions, Validator } from '@tanstack/form-core'
import type { CreateField } from './createField.svelte.js';
import type { CreateField } from './createField.svelte.js'

export interface SvelteFormApi<
TFormData,
Expand Down
7 changes: 2 additions & 5 deletions packages/svelte-form/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineConfig } from 'vitest/config'
import { svelte } from '@sveltejs/vite-plugin-svelte';
import { svelte } from '@sveltejs/vite-plugin-svelte'
import packageJson from './package.json'

export default defineConfig({
Expand All @@ -12,8 +12,5 @@ export default defineConfig({
coverage: { enabled: true, provider: 'istanbul', include: ['src/**/*'] },
typecheck: { enabled: true },
},
plugins: [
svelte({
})
]
plugins: [svelte({})],
})

0 comments on commit 2f0f6a1

Please sign in to comment.