Skip to content

RPC module augmentation stopped working in 0.4.x #550

Description

@mark-tomlinson-dev

Describe the bug

The declare module augmentation shown in the RPC docs appears to no longer register custom RPC function names. Calling one via rpc.call() fails to type-check from 0.4.x onwards.

Thank you for an awesome tool!

Reproduction

https://github.com/mark-tomlinson-dev/devtools-kit-rpc-augmentation-repro

System Info

System:
    OS: macOS 14.3
    CPU: (8) arm64 Apple M3
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.12.0
    npm: 10.9.0
    pnpm: 10.33.0
  npmPackages:
    @vitejs/devtools-kit: 0.4.12 (also fails on 0.6.1, works on 0.1.13)
    typescript: 5.9.3

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions