Generate protobuf value declarations for runtime fields

This commit is contained in:
Timothy J. Aveni
2026-09-03 09:50:30 -07:00
parent 69441e9465
commit 5d3bd68a63
2 changed files with 10 additions and 2 deletions
+6 -1
View File
@@ -386,7 +386,12 @@ const renderRuntime = (schema: ClassSchema, root: protobuf.Root) => {
serveQuixosPackageRuntime,
} from "@quixos/camino-package-runtime";
${collectProtoDeclarations(root, schema.implements.flatMap((entry) => entry.typeBindings.map((binding) => binding.type)))}
${collectProtoDeclarations(root, [
...writableFields.map((field) => field.type),
...schema.implements.flatMap((entry) =>
entry.typeBindings.map((binding) => binding.type),
),
])}
${interfaceRefTypes ? `${interfaceRefTypes}\n\n` : ""}export type ${refTypeName} = ${refType};