9 lines
438 B
TypeScript
9 lines
438 B
TypeScript
/**
|
|
* 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
|
|
* @param root Generated by `pbjs -t json-module -w commonjs -o json-module.js *.proto`
|
|
* @returns A new patched `root`
|
|
*/
|
|
export declare function patchProtobufRoot<T extends Record<string, unknown>>(root: T): T;
|