Generate protobuf value declarations for runtime fields
This commit is contained in:
Vendored
+4
-1
@@ -280,7 +280,10 @@ const renderRuntime = (schema, 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};
|
||||
|
||||
|
||||
@@ -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};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user