# trpc

> tRPC routers: every procedure validates its input, and client code imports the server files named in `trpc.server_files` as types only.

tRPC routers: every procedure validates its input, and client code imports the server files named in `trpc.server_files` as types only. It requires [`javascript`](/reference/configurations/javascript/).

## Settings

| Setting                                                         | What it sets                                                                                          |
| --------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [`trpc.router_files`](/reference/gspot-toml/#trpc.router_files) | The files that declare tRPC procedures.                                                               |
| [`trpc.server_files`](/reference/gspot-toml/#trpc.server_files) | The server files that other files of a tRPC scope may import only as types; empty turns the rule off. |

## Selected when

gspot selects it in a scope with dependencies `@trpc/server`.

## Rules for coding agents

| Rule file                                          | Installed when |
| -------------------------------------------------- | -------------- |
| `.gspot/configurations/library/trpc/rules/TRPC.md` | Always         |
