Skip to content

fix: resolve schema.casing typed as any#274

Merged
onmax merged 2 commits intomainfrom
fix/schema-casing-type
Mar 22, 2026
Merged

fix: resolve schema.casing typed as any#274
onmax merged 2 commits intomainfrom
fix/schema-casing-type

Conversation

@onmax
Copy link
Copy Markdown
Collaborator

@onmax onmax commented Mar 22, 2026

Closes #269

Summary

auth.schema.casing was typed as any because dist/runtime/config.d.ts imported CasingOption from ../schema-generator.js — a file that doesn't exist in dist/ (nuxt-module-build only emits dist/runtime/**). Fix: import Casing from drizzle-orm/utils instead.

StackBlitz

Link Expected
Bug nuxt-better-auth-269 ❌ Unused @ts-expect-error (casing is any)
Fix nuxt-better-auth-269-fix ✅ Typecheck passes

CLI Reproduction

git clone --depth 1 --filter=blob:none --sparse https://github.com/onmax/repros.git
cd repros && git sparse-checkout set nuxt-better-auth-269
cd nuxt-better-auth-269 && pnpm i && npx nuxi typecheck

Verify fix

git sparse-checkout add nuxt-better-auth-269-fix
cd ../nuxt-better-auth-269-fix && pnpm i && npx nuxi typecheck

The -fix folder uses pnpm patch to apply the fix locally.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 22, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@onmax/nuxt-better-auth@274

commit: 938594c

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages bot commented Mar 22, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
❌ Deployment failed
View logs
better-auth 938594c Mar 22 2026, 08:58 AM

@onmax onmax merged commit 1fbb263 into main Mar 22, 2026
3 of 4 checks passed
@onmax onmax deleted the fix/schema-casing-type branch March 22, 2026 09:24
Sign up for free to 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.

Config schema.casing is typed as any

1 participant