UNPKG

watson-developer-cloud

Version:

Client library to use the IBM Watson Services and AlchemyAPI

12 lines (11 loc) 502 B
/// <reference types="node" /> import { Stream } from 'stream'; /** * Helper method that can be bound to a stream - it sets the output to utf-8, captures all of the results, and returns a promise that resolves to the final text * Essentially a smaller version of concat-stream wrapped in a promise * * @param {Stream} [stream] optional stream param for when not bound to an existing stream instance * @return {Promise} */ declare function promise(stream: Stream): Promise<any>; export = promise;