diff --git a/lib/codegen/index.d.ts b/lib/codegen/index.d.ts index 47b7b0c71..f8ed9089c 100644 --- a/lib/codegen/index.d.ts +++ b/lib/codegen/index.d.ts @@ -24,7 +24,7 @@ declare function codegen(functionParams: string[], functionName?: string): Codeg */ declare function codegen(functionName?: string): Codegen; -namespace codegen { +declare namespace codegen { /** When set to `true`, codegen will log generated code to console. Useful for debugging. */ let verbose: boolean; diff --git a/lib/codegen/package.json b/lib/codegen/package.json index 4a905283c..4e82f9562 100644 --- a/lib/codegen/package.json +++ b/lib/codegen/package.json @@ -1,7 +1,7 @@ { "name": "@protobufjs/codegen", "description": "A minimalistic code generation utility.", - "version": "2.0.3", + "version": "2.0.4", "author": "Daniel Wirtz ", "repository": { "type": "git", diff --git a/package.json b/package.json index 6ee6dc9d7..6844b87b5 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.3", + "@protobufjs/codegen": "^2.0.4", "@protobufjs/eventemitter": "^1.1.0", "@protobufjs/fetch": "^1.1.0", "@protobufjs/float": "^1.0.2",