Skip to main content
Corsair is written in TypeScript and designed to be type-safe everywhere. Once you set up your Corsair instance, all API calls, database queries, and responses are fully typed.
example.ts

Why This Matters

Without Corsair, you’d write code like this:
without-corsair.ts
You don’t know what fields are required. You don’t know what the response looks like. You have to check the Slack docs every time. With Corsair:
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
If you can’t use strict mode, at minimum enable strictNullChecks:
tsconfig.json