diff --git a/typescript/support/package.json b/typescript/support/package.json index 1715a76ad0..36b32b0abe 100644 --- a/typescript/support/package.json +++ b/typescript/support/package.json @@ -23,6 +23,7 @@ "files": [ "dist", "src", + "typings", "nodejs.d.ts", "nodejs.js" ], diff --git a/typescript/support/typings/protobufjs.d.ts b/typescript/support/typings/protobufjs.d.ts index 8c0445835e..cb0d924d79 100644 --- a/typescript/support/typings/protobufjs.d.ts +++ b/typescript/support/typings/protobufjs.d.ts @@ -8,7 +8,7 @@ declare module "protobufjs" { protoVersion: string, ): protobufjs.Message & descriptor.IFileDescriptorSet; } - declare namespace ReflectionObject { + namespace ReflectionObject { export const fromDescriptor: (desc: protobufjs.Message) => protobufjs.Root; } }