# emitRpcTypes() function · @imqueue/pg-prisma

Source: https://imqueue.org/api/pg-prisma/latest/pg-prisma.emitrpctypes/
Published: 2026-08-28
Author: @imqueue maintainers (https://github.com/imqueue)
Package: @imqueue/pg-prisma 2.0.0 — generated reference, not hand-written

Emit the RPC query, input and argument classes for a contract.

**Signature:**

```typescript
export declare function emitRpcTypes(input: EmitRpcOptions): string;
```

## Parameters


| Parameter | Type | Description |
| --- | --- | --- |
| input | [EmitRpcOptions](https://imqueue.org/api/pg-prisma/latest/pg-prisma.emitrpcoptions/) |  |


**Returns:**

string

The file content.

## Remarks

These are the shapes a caller sends over the queue, and they have to be decorated classes rather than types: `@classType`/`@property` are what the client generator reads, and an undecorated type is dropped from the client with no error at generation time.

Validation is the one thing not derivable from the contract — see `validation`.

