diff --git a/packages/api/index.ts b/packages/api/index.ts index 895397906..5532885d9 100644 --- a/packages/api/index.ts +++ b/packages/api/index.ts @@ -1087,24 +1087,27 @@ export type HandlerFunction = { eventSchema: E, stateSchema: T, handler: (event: Schema, props: Schema) => any, - ): ModuleFactory>, SchemaWithoutCell>; + ): ModuleFactory< + StripCell>, + Stream> + >; // With inferred types ( eventSchema: JSONSchema, stateSchema: JSONSchema, handler: (event: E, props: HandlerState) => any, - ): ModuleFactory, StripCell>; + ): ModuleFactory, Stream>>; // Without schemas ( handler: (event: E, props: T) => any, options: { proxy: true }, - ): ModuleFactory, StripCell>; + ): ModuleFactory, Stream>>; ( handler: (event: E, props: HandlerState) => any, - ): ModuleFactory, StripCell>; + ): ModuleFactory, Stream>>; }; /**