Skip to content

Fix pre-existing TypeScript type errors #670

@gitauto-ai

Description

@gitauto-ai

Pre-existing TypeScript type errors

These errors were detected by tsc --noEmit and exist independently of any recent PR changes. They should be fixed to keep the codebase clean.

Errors (5 total)

  • app/actions/supabase/coverage/get-coverage.test.ts(461,24): error TS2339: Property 'file_path' does not exist on type '{ branch_coverage: number | null; branch_name: string; created_at: string; created_by: string; exclusion_reason: string | null; file_size: number | null; full_path: string; function_coverage: number | null; ... 15 more ...; updated_by: string; }'.
  • app/actions/supabase/coverage/get-coverage.test.ts(493,24): error TS2339: Property 'lines_total' does not exist on type '{ branch_coverage: number | null; branch_name: string; created_at: string; created_by: string; exclusion_reason: string | null; file_size: number | null; full_path: string; function_coverage: number | null; ... 15 more ...; updated_by: string; }'.
  • app/actions/supabase/coverage/get-coverage.test.ts(525,24): error TS2339: Property 'file_path' does not exist on type '{ branch_coverage: number | null; branch_name: string; created_at: string; created_by: string; exclusion_reason: string | null; file_size: number | null; full_path: string; function_coverage: number | null; ... 15 more ...; updated_by: string; }'.
  • utils/tokens.test.ts(22,5): error TS2322: Type 'MockedClass<typeof Tiktoken>' is not assignable to type 'Mock<any, any, any>'.
  • Type 'MockInstance<Tiktoken, [ranks: TiktokenBPE, extendedSpecialTokens?: Record<string, number> | undefined], Tiktoken> & { prototype: Mocked<Tiktoken>; } & typeof Tiktoken' provides no match for the signature '(this: any, ...args: any): any'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions