emitRpcTypes() function
Emit the RPC query, input and argument classes for a contract.
Signature:
export declare function emitRpcTypes(input: EmitRpcOptions): string;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
input |
Returns:
string
The file content.
Remarks
These are the shapes a caller sends over the queue, and for an service 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. With decorators: false they are plain classes, for a service that is not an service; validation rules are then not emitted either.
Validation is the one thing not derivable from the contract — see validation.
Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.