tuyau-client
Using Tuyau (generated client) for type-safe API access
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Using Tuyau (generated client) for type-safe API access
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Run, write, and troubleshoot Japa browser tests that use Playwright; use when you add or change frontend functionality that should be covered by tests
Testing guidelines. Use when writing or updating tests.
Caching with @adonisjs/cache (keys, tags, invalidation). Use when adding or debugging cache behavior.
Lucid models/migrations conventions and safe workflows. Use when changing schema or models.
Writing documentation. Use when key functionality is added or changed
Frontend rules conventions. Use when working with frontend-related tasks.
| name | tuyau-client |
| description | Using Tuyau (generated client) for type-safe API access |
See also the full Tuyau documentation
node ace tuyau:generate in the project root after route/controller or request.validateUsing changes; this updates .adonisjs/api.ts and .adonisjs/index.ts.pnpm typecheckresources/react_app/utils/tuyau.ts via import { api } from '#web/utils/tuyau'.createTuyau({ api: generatedApi, baseUrl: '/' }), so relative calls work in loaders, actions, and components.api.$route('enquiries:sale').$get({ query: { page, pageSize } }).unwrap().api.$route('enquiries:sale.show', { id }).$get().unwrap().api.$route('column_layouts:update').$put({ mode, category, visibleColumns }).unwrap().api.$url('brokers:index').{ data, error, status, response }; use unwrap() to throw on non-2xx when you do not need custom narrowing.InferRequestType, InferResponseType, and InferErrorType from @tuyau/client to keep derived types in sync with backend contracts..unwrap() inside the query/mutation function so callers receive plain data..adonisjs/api.ts under routes.node ace tuyau:generate when backend API surface changes, then run pnpm typecheck to confirm the frontend remains aligned.