Export template source from ba8d4f92667f39bb02d542cb492b71a32ec914bf:quixos-instance/packages/project-runtime
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { encodeQxValue, decodeQxValue, type MessageBinding, type QxValueType } from "@quixos/camino-package-runtime";
|
||||
|
||||
type SearchDocument = { title: string; subtitle: string; keywords: string[] };
|
||||
const schema: QxValueType = { kind: "record", fields: {
|
||||
title: { kind: "scalar", name: "string" }, subtitle: { kind: "scalar", name: "string" },
|
||||
keywords: { kind: "list", value: { kind: "scalar", name: "string" } },
|
||||
}};
|
||||
export const searchDocumentBinding: MessageBinding<SearchDocument> = {
|
||||
encode: value => encodeQxValue(schema, value, {}),
|
||||
decode: value => decodeQxValue(schema, value, {}),
|
||||
};
|
||||
Reference in New Issue
Block a user