opinionated-machine
Version:
Very opinionated DI framework for fastify, built on top of awilix
7 lines (6 loc) • 313 B
TypeScript
import type { z } from 'zod';
export type SSEEventDefinition<Name extends string = string, T extends z.ZodType = z.ZodType> = {
readonly event: Name;
readonly schema: T;
};
export declare function defineEvent<Name extends string, T extends z.ZodType>(event: Name, schema: T): SSEEventDefinition<Name, T>;