Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [FEAT] Allow returning anything in a validator, not just a string #1104

Draft
wants to merge 46 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
44a71cf
chore: WIP adding in inferencing to validator's return type
crutchcorn Jan 9, 2025
d9ef915
chore: more work on fixing types
crutchcorn Jan 9, 2025
8b87404
chore: wip on things more
crutchcorn Jan 9, 2025
d2544c7
chore: fix issues with FormApi and FieldApi
crutchcorn Jan 9, 2025
9c1caef
chore: add more fields to infer
crutchcorn Jan 9, 2025
901efb3
chore: change typed from unknown to undefined
crutchcorn Jan 9, 2025
9b18dbd
chore: more fixes
crutchcorn Jan 9, 2025
97767f4
chore: add some new type tests
crutchcorn Jan 9, 2025
5263c16
chore: add more type tests
crutchcorn Jan 9, 2025
e321a09
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 9, 2025
05e3e99
chore: migrate React components to use new prop types
crutchcorn Jan 9, 2025
00963bd
chore: move useTransform hook to new types
crutchcorn Jan 9, 2025
be575af
chore: add convinience type for AnyFormAPI and AnyFieldAPI
crutchcorn Jan 9, 2025
f2e0d00
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 9, 2025
6de25f3
chore: fix NextJS and Remix adapters
crutchcorn Jan 9, 2025
65c31b6
chore: fix build of Start adapter
crutchcorn Jan 9, 2025
e902f69
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 9, 2025
0035012
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 9, 2025
64cfbe0
chore: fix issues with Nx on Windows
crutchcorn Jan 10, 2025
0c7cdbe
chore: fix issues with FieldAny in examples
crutchcorn Jan 10, 2025
d3758c0
chore: upgrade React packages to stable
crutchcorn Jan 10, 2025
1a196a5
chore: WIP attempt to fix Start package
crutchcorn Jan 10, 2025
29c25b3
chore: fix mergeForm typing
crutchcorn Jan 10, 2025
b91fc72
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 10, 2025
5d21496
chore: migrate Angular adapter to use new API
crutchcorn Jan 10, 2025
035ae35
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 10, 2025
70a644c
chore: migrate Lit adapter to new generics
crutchcorn Jan 11, 2025
eb942ec
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 11, 2025
98fd587
chore: attempt 1 at fixing Vue's types
crutchcorn Jan 11, 2025
074f9a4
chore: fix Vue types for JSX and Vue SFCs alike
crutchcorn Jan 11, 2025
2e9f16d
chore: migrate Vue type to use new generics
crutchcorn Jan 11, 2025
ae2609e
chore: fix Vue test types
crutchcorn Jan 11, 2025
5600797
chore: fix Vue examples
crutchcorn Jan 11, 2025
af991ec
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 11, 2025
4604b41
chore: migrate Solid to new generics system
crutchcorn Jan 11, 2025
ac698c8
chore: fix Solid examples
crutchcorn Jan 11, 2025
c9ea6cf
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 11, 2025
69c1897
ci: apply automated fixes and generate docs (attempt 2/3)
autofix-ci[bot] Jan 11, 2025
1798a88
chore: fix issues with Solid library
crutchcorn Jan 12, 2025
4138729
chore: fix knip
crutchcorn Jan 12, 2025
1b46420
chore: fix issues with error casting
crutchcorn Jan 12, 2025
56f813a
chore: fix issue with ESLint
crutchcorn Jan 12, 2025
a5d41db
docs: show errorMap and errorarray
crutchcorn Jan 12, 2025
57198cb
Merge branch 'main' into return-anything-not-just-string
crutchcorn Jan 15, 2025
dcd8e3b
chore: upgrade all deps
crutchcorn Jan 15, 2025
0d40105
ci: apply automated fixes and generate docs
autofix-ci[bot] Jan 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: fix Solid examples
crutchcorn committed Jan 11, 2025
commit ac698c801b59dbb69d13b9a69568b799972249a1
4 changes: 2 additions & 2 deletions examples/solid/simple/src/index.tsx
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@
import { render } from 'solid-js/web'

import { createForm } from '@tanstack/solid-form'
import type { FieldApi } from '@tanstack/solid-form'
import type { AnyFieldApi } from '@tanstack/solid-form'

interface FieldInfoProps {
field: FieldApi<any, any, any, any>
field: AnyFieldApi
}

function FieldInfo(props: FieldInfoProps) {
4 changes: 2 additions & 2 deletions examples/solid/valibot/src/index.tsx
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ import { render } from 'solid-js/web'
import { createForm } from '@tanstack/solid-form'
import { valibotValidator } from '@tanstack/valibot-form-adapter'
import * as v from 'valibot'
import type { FieldApi } from '@tanstack/solid-form'
import type { AnyFieldApi } from '@tanstack/solid-form'

interface FieldInfoProps {
field: FieldApi<any, any, any, any>
field: AnyFieldApi
}

function FieldInfo(props: FieldInfoProps) {
4 changes: 2 additions & 2 deletions examples/solid/yup/src/index.tsx
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ import { render } from 'solid-js/web'
import { createForm } from '@tanstack/solid-form'
import { yupValidator } from '@tanstack/yup-form-adapter'
import * as yup from 'yup'
import type { FieldApi } from '@tanstack/solid-form'
import type { AnyFieldApi } from '@tanstack/solid-form'

interface FieldInfoProps {
field: FieldApi<any, any, any, any>
field: AnyFieldApi
}

function FieldInfo(props: FieldInfoProps) {
4 changes: 2 additions & 2 deletions examples/solid/zod/src/index.tsx
Original file line number Diff line number Diff line change
@@ -4,10 +4,10 @@ import { render } from 'solid-js/web'
import { createForm } from '@tanstack/solid-form'
import { zodValidator } from '@tanstack/zod-form-adapter'
import { z } from 'zod'
import type { FieldApi } from '@tanstack/solid-form'
import type { AnyFieldApi } from '@tanstack/solid-form'

interface FieldInfoProps {
field: FieldApi<any, any, any, any>
field: AnyFieldApi
}

function FieldInfo(props: FieldInfoProps) {