Skip to content

Commit 058c258

Browse files
committed
Correcting the type for EventStreamFactory.
1 parent 1901050 commit 058c258

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

express-zod-api/src/sse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Response } from "express";
22
import { z } from "zod/v4";
3-
import { EmptySchema, FlatObject } from "./common-helpers";
3+
import { FlatObject } from "./common-helpers";
44
import { contentTypes } from "./content-type";
55
import { EndpointsFactory } from "./endpoints-factory";
66
import { Middleware } from "./middleware";
@@ -100,7 +100,7 @@ export const makeResultHandler = <E extends EventsMap>(events: E) =>
100100
});
101101

102102
export class EventStreamFactory<E extends EventsMap> extends EndpointsFactory<
103-
EmptySchema,
103+
undefined,
104104
Emitter<E>
105105
> {
106106
constructor(events: E) {

0 commit comments

Comments
 (0)