1 parent e52f5ba commit fe09edbCopy full SHA for fe09edb
1 file changed
packages/devframe/src/rpc/types.ts
@@ -179,8 +179,8 @@ export interface RpcFunctionDefinitionBase<
179
/**
180
* Selects the serialization format for arguments and return values.
181
*
182
- * - `true`: uses strict JSON encoding. Inferred for agent-exposed functions.
183
- * - `false` (default): uses structured-clone encoding and supports values
+ * - `true`: uses strict JSON encoding (default when `agent` is set).
+ * - `false` (default otherwise): uses structured-clone encoding and supports values
184
* such as `Map`, `Set`, `Date`, and cycles. Functions using this mode
185
* cannot be agent-exposed.
186
*/
0 commit comments