Skip to content

fix(start): sync start serialization on the type level - #2809

Merged
chorobin merged 8 commits into
mainfrom
fix-fn-response-type
Nov 21, 2024
Merged

fix(start): sync start serialization on the type level#2809
chorobin merged 8 commits into
mainfrom
fix-fn-response-type

Conversation

@chorobin

@chorobinchorobin commented Nov 19, 2024

Copy link
Copy Markdown
Contributor

Fixes#2693

@nx-cloud

nx-cloudBot commented Nov 19, 2024

Copy link
Copy Markdown
Contributor

☁️ Nx Cloud Report

CI is running/has finished running commands for commit ae0914f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@pkg-pr-new

pkg-pr-newBot commented Nov 19, 2024

Copy link
Copy Markdown

Open in Stackblitz

More templates

@tanstack/arktype-adapter

pnpm add https://pkg.pr.new/@tanstack/arktype-adapter@2809

@tanstack/history

pnpm add https://pkg.pr.new/@tanstack/history@2809

@tanstack/react-cross-context

pnpm add https://pkg.pr.new/@tanstack/react-cross-context@2809

@tanstack/create-router

pnpm add https://pkg.pr.new/@tanstack/create-router@2809

@tanstack/react-router

pnpm add https://pkg.pr.new/@tanstack/react-router@2809

@tanstack/eslint-plugin-router

pnpm add https://pkg.pr.new/@tanstack/eslint-plugin-router@2809

@tanstack/react-router-with-query

pnpm add https://pkg.pr.new/@tanstack/react-router-with-query@2809

@tanstack/router-cli

pnpm add https://pkg.pr.new/@tanstack/router-cli@2809

@tanstack/router-devtools

pnpm add https://pkg.pr.new/@tanstack/router-devtools@2809

@tanstack/router-generator

pnpm add https://pkg.pr.new/@tanstack/router-generator@2809

@tanstack/router-plugin

pnpm add https://pkg.pr.new/@tanstack/router-plugin@2809

@tanstack/router-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/router-vite-plugin@2809

@tanstack/start

pnpm add https://pkg.pr.new/@tanstack/start@2809

@tanstack/start-vite-plugin

pnpm add https://pkg.pr.new/@tanstack/start-vite-plugin@2809

@tanstack/valibot-adapter

pnpm add https://pkg.pr.new/@tanstack/valibot-adapter@2809

@tanstack/virtual-file-routes

pnpm add https://pkg.pr.new/@tanstack/virtual-file-routes@2809

@tanstack/zod-adapter

pnpm add https://pkg.pr.new/@tanstack/zod-adapter@2809

commit: ae0914f

Comment threadpackages/start/src/client/createServerFn.ts Outdated
@chorobin
chorobin merged commit 607ac2b into mainNov 21, 2024
@chorobin
chorobin deleted the fix-fn-response-type branch November 21, 2024 18:54
timoconnellaus pushed a commit to timoconnellaus/tanstack-router that referenced this pull request Dec 19, 2024
* fix(start): allow functions in types
* fix(start): implement start serialization on the type level
* fix(start): validate createServerFn to not allow functions
* refactor(start): make transformer types generic
* feat(start): add type checking of validator and context
* chore: fix linting
* chore: remove serializable types
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Type safety breaks around Dates and other non standard objects when using server functions

2 participants

@chorobin@SeanCassiere