diff --git a/x-pack/packages/ml/response_stream/server/stream_factory.ts b/x-pack/packages/ml/response_stream/server/stream_factory.ts index f44065f160949d..79895525ba40ce 100644 --- a/x-pack/packages/ml/response_stream/server/stream_factory.ts +++ b/x-pack/packages/ml/response_stream/server/stream_factory.ts @@ -33,7 +33,8 @@ type StreamType = T extends string ? T : never; -export interface StreamFactoryReturnType { +// Fallback to never is there for backwards compatibility. +export interface StreamFactoryReturnType { DELIMITER: string; end: () => void; push: (d: StreamType, drain?: boolean) => void;