protobufs
Entry point for classes and utilities related to using Protobufs for serialization.
Import from @temporalio/common/protobufs, for example:
import { patchProtobufRoot } from '@temporalio/common/protobufs';
Classes
Interfaces
Functions
patchProtobufRoot()
patchProtobufRoot<
T>(root):T
Create a version of root with non-nested namespaces to match the generated types.
For more information, see:
https://github.com/temporalio/sdk-typescript/blob/main/docs/protobuf-libraries.md#current-solution
Type Parameters
T
T extends Record<string, unknown>
Parameters
root
T
Generated by pbjs -t json-module -w commonjs -o json-module.js *.proto
Returns
T
A new patched root