UNPKG

@bobmatnyc/ai-code-review

Version:

A TypeScript-based tool for automated code reviews using AI models from Google Gemini, Anthropic Claude, and OpenRouter

48 lines (47 loc) 1.53 kB
/** * @fileoverview Common type definitions used throughout the application. * * This module defines common types, enums, and constants used across the application. * Centralizing these definitions ensures consistency and type safety. */ import { ReviewType } from './review'; /** * Output format options for the review results */ export type OutputFormat = 'markdown' | 'json'; /** * Supported programming languages for code reviews */ export type ProgrammingLanguage = 'typescript' | 'javascript' | 'python' | 'java' | 'go' | 'rust' | 'c' | 'cpp' | 'csharp' | 'php' | 'ruby' | 'swift' | 'kotlin'; /** * Default programming language */ export declare const DEFAULT_LANGUAGE: ProgrammingLanguage; /** * Valid programming languages array for validation */ export declare const VALID_LANGUAGES: ProgrammingLanguage[]; /** * Valid output formats array for validation */ export declare const VALID_OUTPUT_FORMATS: OutputFormat[]; /** * Priority filter options for interactive mode */ export type PriorityFilter = 'h' | 'm' | 'l' | 'a'; /** * Valid priority filters array for validation */ export declare const VALID_PRIORITY_FILTERS: PriorityFilter[]; /** * Priority filter descriptions */ export declare const PRIORITY_FILTER_DESCRIPTIONS: Record<PriorityFilter, string>; /** * Valid review types array for validation */ export declare const VALID_REVIEW_TYPES: ReviewType[]; /** * Review type descriptions */ export declare const REVIEW_TYPE_DESCRIPTIONS: Record<Exclude<ReviewType, 'consolidated'>, string>;