Skip to main content

toPublicChunk

@webda/core


Function: toPublicChunk()

toPublicChunk(value): unknown

Defined in: packages/core/src/contexts/streamingcontext.ts:10

A value as clients may see it: plain JSON without __ keys

Parameters​

value​

unknown

an operation result or streamed chunk

Returns​

unknown

the copy (undefined stays undefined), or null when the value is not JSON-serializable (function, symbol)