signal-desktop/patches/protobufjs-cli+1.1.1.patch
dependabot[bot] 5c4d93e103
Bump protobufjs from 6.11.3 to 7.2.4
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Fedor Indutnyy <indutny@signal.org>
2023-07-12 19:54:37 +02:00

18 lines
618 B
Diff

diff --git a/node_modules/protobufjs-cli/lib/tsd-jsdoc/publish.js b/node_modules/protobufjs-cli/lib/tsd-jsdoc/publish.js
index 3846a99..20c61b6 100644
--- a/node_modules/protobufjs-cli/lib/tsd-jsdoc/publish.js
+++ b/node_modules/protobufjs-cli/lib/tsd-jsdoc/publish.js
@@ -558,6 +558,13 @@ function handleClass(element, parent) {
handleElement(child, element);
});
+ writeln();
+ if (is_interface) {
+ writeln("$unknownFields?: ReadonlyArray<Uint8Array>;");
+ } else {
+ writeln("public $unknownFields?: ReadonlyArray<Uint8Array>;");
+ }
+
--indent;
writeln("}");