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 · f2c4fe3d71ef358edbf079200a52ea335cc5b3f6
Menu

Theme