Skip to main content
Run any Skill in Manus
with one click

zenstack-authenticated-db-params

Stars1
Forks0
UpdatedJanuary 27, 2026 at 08:46

Fix TypeScript circular reference errors when passing ZenStack authenticated database client as function parameter. Use when: (1) TypeScript error "TS2502: 'db' is referenced directly or indirectly in its own type annotation", (2) Utility functions need to accept authenticated db from server actions, (3) Using `ReturnType<typeof db.$setAuth>` causes circular reference. Solves typing authenticated ZenStack clients in Better Auth + ZenStack projects with proper access control enforcement.

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly