diff --git a/packages/demo-protobuf/src/demo.proto.ts b/packages/demo-protobuf/src/demo.proto.ts index c78a4538..a0050a05 100644 --- a/packages/demo-protobuf/src/demo.proto.ts +++ b/packages/demo-protobuf/src/demo.proto.ts @@ -1,4 +1,6 @@ -export default ` +// Without this TS infers this is a string literal. +// eslint-disable-next-line @typescript-eslint/no-inferrable-types +const proto: string = ` syntax = "proto3"; package demo; @@ -6,3 +8,5 @@ message MsgDemo { string example = 1; } `; + +export default proto; diff --git a/packages/demo-protobuf/types/demo.proto.d.ts b/packages/demo-protobuf/types/demo.proto.d.ts index a08652d5..2cad5e4f 100644 --- a/packages/demo-protobuf/types/demo.proto.d.ts +++ b/packages/demo-protobuf/types/demo.proto.d.ts @@ -1,2 +1,2 @@ -declare const _default: '\nsyntax = "proto3";\npackage demo;\n\nmessage MsgDemo {\n string example = 1;\n}\n'; -export default _default; +declare const proto: string; +export default proto;