14 lines
535 B
Handlebars
14 lines
535 B
Handlebars
// packages/{{kebabCase feature}}/src/realtime/{{kebabCase channelSlug}}.channel.ts
|
|
import { z } from "zod";
|
|
import { defineRealtimeChannel } from "@repo/core-realtime";
|
|
|
|
export const {{camelCase channelSlug}}Schema = z.object({}).strict();
|
|
|
|
export type {{pascalCase channelSlug}}Payload = z.infer<typeof {{camelCase channelSlug}}Schema>;
|
|
|
|
export const {{camelCase channelSlug}}Channel = defineRealtimeChannel(
|
|
"{{kebabCase feature}}.{{kebabCase channelSlug}}",
|
|
{{camelCase channelSlug}}Schema,
|
|
{ scope: {{{scopeLiteral}}} },
|
|
);
|