mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 11:41:44 +00:00
Different parser functions signatures for browser and node.
This commit is contained in:
Vendored
+5
-1
@@ -17,7 +17,11 @@ type CallbackHandler = (err: any, res: request.Response) => void;
|
||||
|
||||
type Serializer = (obj: any) => string;
|
||||
|
||||
type Parser = (res: request.Response, callback: (err: Error | null, body: any) => void) => void;
|
||||
type BrowserParser = (str: string) => any;
|
||||
|
||||
type NodeParser = (res: request.Response, callback: (err: Error | null, body: any) => void) => void;
|
||||
|
||||
type Parser = BrowserParser | NodeParser;
|
||||
|
||||
type MultipartValueSingle = Blob | Buffer | fs.ReadStream | string | boolean | number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user