demo-protobuf: Fix type of demo.proto

This commit is contained in:
willclarktech 2020-06-16 09:47:05 +01:00
parent cd65de53f0
commit 8e83996a3b
No known key found for this signature in database
GPG Key ID: 551A86E2E398ADF7
2 changed files with 7 additions and 3 deletions

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;

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;