// you have the class initialized:
ourClass.register("user.create", z.object({ id: z.string(), name: z.string() }))
// internally i convert this to a string:
const eventType = `${ZodToTypescript.convert(schema, { name: convertSubjectNameToEventType(subject) })}`
// then I send it to all other apps via the event bus, then all the other apps get this eventType and write it to the filesystem.
// you have the class initialized:
ourClass.register("user.create", z.object({ id: z.string(), name: z.string() }))
// internally i convert this to a string:
const eventType = `${ZodToTypescript.convert(schema, { name: convertSubjectNameToEventType(subject) })}`
// then I send it to all other apps via the event bus, then all the other apps get this eventType and write it to the filesystem.