JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 43
  • Score
    100M100P100Q102815F
  • License MIT

pyRPC TypeScript type definitions — generated by pyrpc codegen

Package Exports

  • @pyrpc/types

Readme

@pyrpc/types

TypeScript type definitions for pyRPC. Generated by pyrpc codegen — reflects your actual Python backend procedures at compile time.

How it works

@pyrpc/types is a dependency of @pyrpc/client. When you install the client, the postinstall script prompts for your server URL and writes real types:

npm install @pyrpc/client

For CI or automated setups:

PYRPC_URL=https://api.example.com npm install @pyrpc/client

Before codegen runs, Types resolves to Record<string, never>. After codegen, it resolves to your actual procedure signatures — full autocompletion, no boilerplate.

Manual generation

If the postinstall prompt is skipped:

pip install pyrpc-codegen
pyrpc codegen https://your-server.com

By default, types are written to node_modules/@pyrpc/types/src/index.ts. Use --output to override.

License

MIT