Skip to content

Commit

Permalink
fix default fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
walterra committed May 7, 2024
1 parent 504aedb commit da2152b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/packages/ml/response_stream/server/stream_factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ type StreamType<T extends StreamTypeUnion> = T extends string
? T
: never;

export interface StreamFactoryReturnType<T extends StreamTypeUnion> {
// Fallback to never is there for backwards compatibility.
export interface StreamFactoryReturnType<T extends StreamTypeUnion = never> {
DELIMITER: string;
end: () => void;
push: (d: StreamType<T>, drain?: boolean) => void;
Expand Down

0 comments on commit da2152b

Please sign in to comment.