Namespace: protobufs
Entry point for classes and utilities related to using Protobufs for serialization.
Import from @temporalio/common/lib/protobufs
, for example:
import { patchProtobufRoot } from '@temporalio/common/lib/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
Name | Type |
---|---|
T | extends Record <string , unknown > |
Parameters
Name | Type | Description |
---|---|---|
root | T | Generated by pbjs -t json-module -w commonjs -o json-module.js *.proto |
Returns
T
A new patched root