Skip to main content

Type Alias: ReadSerializer()

Type Alias: ReadSerializer()

type ReadSerializer = (row: Record<string, unknown>, context: ReadSerializerContext) => Record<string, unknown>;

Shape one already private-safe row before it reaches the wire. A Promise is not assignable to the return type, so an async callback fails to compile: serializers run inside the response path and must not add latency there.

Parameters

ParameterType
rowRecord<string, unknown>
contextReadSerializerContext

Returns

Record<string, unknown>

Databricks Developer Hub

Ready to ship your next agentic app in minutes?

Read docs