SPB Git forge

spb/cancerindex

Public
37commits 1branches 0releases
2.9 MBsize
maindefault branch
10 days agolast push
TypeScript 97.2% SQL 1.5% CSS 0.6% JavaScript 0.5%
439 B · 21 lines typescript
Raw Blame History
1import type { Database } from '@cancerindex/database';23export interface ApiKeyInfo {4  id: number;5  prefix: string;6  tier: string;7  rateLimitPerMinute: number;8  label: string | null;9}1011declare module 'fastify' {12  interface FastifyInstance {13    db: Database;14    /** True when the database answered the last liveness probe. */15    dbHealthy(): Promise<boolean>;16  }17  interface FastifyRequest {18    apiKey: ApiKeyInfo | null;19  }20}21