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

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.

Read this page as plain markdown — no HTML, no navigation. For pasting into an LLM, or for an agent to fetch.