demo-protobuf: Fix type of demo.proto

This commit is contained in:
willclarktech
2020-06-23 10:26:42 +02:00
parent cd65de53f0
commit 8e83996a3b
2 changed files with 7 additions and 3 deletions
+5 -1
View File
@@ -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;
+2 -2
View File
@@ -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;