Skip to content

Commit fe09edb

Browse files
posvaCopilot
andauthored
Update comments for serialization format in types.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent e52f5ba commit fe09edb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/devframe/src/rpc/types.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,8 +179,8 @@ export interface RpcFunctionDefinitionBase<
179179
/**
180180
* Selects the serialization format for arguments and return values.
181181
*
182-
* - `true`: uses strict JSON encoding. Inferred for agent-exposed functions.
183-
* - `false` (default): uses structured-clone encoding and supports values
182+
* - `true`: uses strict JSON encoding (default when `agent` is set).
183+
* - `false` (default otherwise): uses structured-clone encoding and supports values
184184
* such as `Map`, `Set`, `Date`, and cycles. Functions using this mode
185185
* cannot be agent-exposed.
186186
*/

0 commit comments

Comments
 (0)