We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Start
Code:
export const listWidgets = createServerFn({ method: "GET" }).handler( async () => { return [ { id: "1" as string & { __brand: "id"; }, name: "Widget 1", }, ]; } );
Type error:
Type '() => string' is not assignable to type '"Function is not serializable"'
Is the type error.
Code above.
It should allow branded strings - commonly used for database IDs, etc.
No response
"@tanstack/react-router": "^1.95.5", "@tanstack/start": "^1.95.5",
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Which project does this relate to?
Start
Describe the bug
Code:
Type error:
Is the type error.
Steps to Reproduce the Bug or Issue
Code above.
Expected behavior
It should allow branded strings - commonly used for database IDs, etc.
Screenshots or Videos
No response
Platform
Additional context
No response
The text was updated successfully, but these errors were encountered: