SPB Git

spb/cancerindex

Public
439 B · 21 lines typescript
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
Files · 18ad269a7d83e6da7230abddcf4e0d686cec73f3
Menu

Theme