Skip to content

Commit

Permalink
remove streams from legacy utils
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Sep 3, 2020
1 parent 5b1e841 commit 0262b1d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 30 deletions.
17 changes: 0 additions & 17 deletions src/legacy/utils/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,5 @@
* specific language governing permissions and limitations
* under the License.
*/
import { Readable, Writable, Transform, TransformOptions } from 'stream';

export function concatStreamProviders(
sourceProviders: Array<() => Readable>,
options: TransformOptions
): Transform;
export function createIntersperseStream(intersperseChunk: string | Buffer): Transform;
export function createSplitStream<T>(splitChunk: T): Transform;
export function createListStream(items: any | any[]): Readable;
export function createReduceStream<T>(reducer: (value: any, chunk: T, enc: string) => T): Transform;
export function createPromiseFromStreams<T>([first, ...rest]: [Readable, ...Writable[]]): Promise<
T
>;
export function createConcatStream(initial?: any): Transform;
export function createMapStream<T>(fn: (value: T, i: number) => void): Transform;
export function createReplaceStream(toReplace: string, replacement: string | Buffer): Transform;
export function createFilterStream<T>(fn: (obj: T) => boolean): Transform;

export function unset(object: object, rawPath: string): void;
13 changes: 0 additions & 13 deletions src/legacy/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,3 @@ export { deepCloneWithBuffers } from './deep_clone_with_buffers';
export { unset } from './unset';
export { IS_KIBANA_DISTRIBUTABLE } from './artifact_type';
export { IS_KIBANA_RELEASE } from './artifact_type';

export {
concatStreamProviders,
createConcatStream,
createIntersperseStream,
createListStream,
createPromiseFromStreams,
createReduceStream,
createSplitStream,
createMapStream,
createReplaceStream,
createFilterStream,
} from '../../core/server/utils/';

0 comments on commit 0262b1d

Please sign in to comment.