ts-proto 1.156.5 → 1.156.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/main.js +0 -3
- package/package.json +1 -1
package/build/main.js
CHANGED
|
@@ -614,9 +614,6 @@ function generateInterfaceDeclaration(ctx, fullName, messageDesc, sourceInfo, fu
|
|
|
614
614
|
const name = (0, case_1.maybeSnakeToCamel)(fieldDesc.name, options);
|
|
615
615
|
const isOptional = (0, types_1.isOptionalProperty)(fieldDesc, messageDesc.options, options);
|
|
616
616
|
const type = (0, types_1.toTypeName)(ctx, messageDesc, fieldDesc, isOptional);
|
|
617
|
-
if (isOptional && !type.toString().includes("undefined")) {
|
|
618
|
-
console.warn(name, type);
|
|
619
|
-
}
|
|
620
617
|
chunks.push((0, ts_poet_1.code) `${maybeReadonly(options)}${name}${isOptional ? "?" : ""}: ${type}, `);
|
|
621
618
|
});
|
|
622
619
|
if (ctx.options.unknownFields) {
|