From 09e5e5c89c05036cbdcfe54d0614a19756cb1fee Mon Sep 17 00:00:00 2001 From: Dimitri Nikitopoulos Date: Mon, 23 Dec 2024 15:54:28 -0500 Subject: [PATCH] fix: add typings to package output --- typescript/support/package.json | 1 + typescript/support/typings/protobufjs.d.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; } }