Skip to content

Codegen emits unused api as generatedApi import in internal-only .runtime.ts files #295

Description

@m7md1alaa

Bug

When all procedures in a module are internal/private, the codegen unconditionally emits

import type {
  api as generatedApi,
  internal as generatedInternal,
} from '<path>/_generated/api';

in the generated .runtime.ts file, but generatedApi is never used because every entry
references generatedInternal only.
TypeScript 5.5+ flags this as TS6196 ('generatedApi' is declared but never used).
Affected files
Any .runtime.ts where every procedure is internal:

  • plugins/resend.runtime.ts
  • server.runtime.ts

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions