mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Fix first round of weak type errors Done through griddle-react * 95% done with weak type fixes * Fix last couple of weak type errors * Remove some lint from mithril tests * mithril's Lifecycle is not a weak type any more Restore the Lifecycle constraints in the rest of the definitions. * Fix react-redux tests after #16652 broke them * Remove package-lock.json
13 lines
626 B
TypeScript
13 lines
626 B
TypeScript
import http = require('http');
|
|
import BufferStream = require('./index');
|
|
|
|
export = PostBuffer;
|
|
declare class PostBuffer extends BufferStream {
|
|
/** for if you want to get all the post data from a http server request and do some db request before. */
|
|
constructor(req: http.IncomingMessage);
|
|
/** set a callback to get all post data from a http server request */
|
|
onEnd(callback: (data: any) => void): void;
|
|
/** pumps data into another stream to allow incoming streams given options will be passed to Stream.pipe */
|
|
pipe(stream: NodeJS.WritableStream, options?: { end?: boolean }): NodeJS.ReadableStream;
|
|
}
|