Skip to content

Commit 14d8702

Browse files
chore(form-core): remove unused imports (#1245)
* style(form-core): remove unused imports Remove unused `FormAsyncValidateOrFn` and `FormValidateOrFn` imports from `formOptions.ts`. These types were not referenced in the file, and their removal improves code cleanliness without impacting functionality. No functional changes. * ci: apply automated fixes and generate docs --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent 6ee6fb0 commit 14d8702

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

docs/reference/functions/formoptions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: formOptions
1111
function formOptions<T>(defaultOpts): T
1212
```
1313

14-
Defined in: [packages/form-core/src/formOptions.ts:7](https://github.com/TanStack/form/blob/main/packages/form-core/src/formOptions.ts#L7)
14+
Defined in: [packages/form-core/src/formOptions.ts:3](https://github.com/TanStack/form/blob/main/packages/form-core/src/formOptions.ts#L3)
1515

1616
## Type Parameters
1717

packages/form-core/src/formOptions.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
import type {
2-
FormAsyncValidateOrFn,
3-
FormOptions,
4-
FormValidateOrFn,
5-
} from './FormApi'
1+
import type { FormOptions } from './FormApi'
62

73
export function formOptions<
84
T extends Partial<

0 commit comments

Comments
 (0)