example.ts
Why This Matters
Without Corsair, you’d write code like this:without-corsair.ts
with-corsair.ts
Typed Database Queries
Database operations are also fully typed based on your plugin schemas.example.ts
Consistent Across Integrations
Every integration uses the same patterns. Learn once, use everywhere.example.ts
TypeScript Config
We recommend enabling strict mode in your TypeScript configuration for the best experience.tsconfig.json
strictNullChecks:
tsconfig.json