diff --git a/types/request/index.d.ts b/types/request/index.d.ts index f714ab2f8c..4a67d198d6 100644 --- a/types/request/index.d.ts +++ b/types/request/index.d.ts @@ -240,8 +240,8 @@ declare namespace request { writable: boolean; getAgent(): http.Agent; - //start(): void; - //abort(): void; + // start(): void; + // abort(): void; pipeDest(dest: any): void; setHeader(name: string, value: string, clobber?: boolean): Request; setHeaders(headers: Headers): Request; diff --git a/types/request/request-tests.ts b/types/request/request-tests.ts index ed2f05b132..843ec4920e 100644 --- a/types/request/request-tests.ts +++ b/types/request/request-tests.ts @@ -32,12 +32,12 @@ var bodyArr: request.RequestPart[] = [{ body: value }]; -//Defaults tests +// Defaults tests (() => { const githubUrl = 'https://github.com'; const defaultJarRequest = request.defaults({ jar: true }); defaultJarRequest.get(githubUrl); - //defaultJarRequest(); //this line doesn't compile (and shouldn't) + // defaultJarRequest(); //this line doesn't compile (and shouldn't) const defaultUrlRequest = request.defaults({ url: githubUrl }); defaultUrlRequest(); defaultUrlRequest.get(); @@ -138,8 +138,8 @@ opt.uri = str; // --- --- --- --- --- --- --- --- --- --- --- --- agent = req.getAgent(); -//req.start(); -//req.abort(); +// req.start(); +// req.abort(); req.pipeDest(dest); req = req.setHeader(str, str); req = req.setHeader(str, str, bool); @@ -245,7 +245,7 @@ request }) .pipe(request.put('http://another.com/another.png')); -//The following examples from https://github.com/request/request +// The following examples from https://github.com/request/request request('http://www.google.com', function (error, response, body) { if (!error && response.statusCode == 200) { console.log(body); // Show the HTML for the Google homepage. @@ -571,13 +571,13 @@ request({ } }); -//requests using baseRequest() will set the 'x-token' header +// requests using baseRequest() will set the 'x-token' header var baseRequest = request.defaults({ headers: {'x-token': 'my-token'} }); -//requests using specialRequest() will include the 'x-token' header set in -//baseRequest and will also include the 'special' header +// requests using specialRequest() will include the 'x-token' header set in +// baseRequest and will also include the 'special' header var specialRequest = baseRequest.defaults({ headers: {special: 'special value'} }); @@ -666,10 +666,10 @@ request({url: url, jar: j}, function () { request('http://images.google.com'); }); -//TODO: add definitions for tough-cookie-filestore -//var FileCookieStore = require('tough-cookie-filestore'); +// TODO: add definitions for tough-cookie-filestore +// var FileCookieStore = require('tough-cookie-filestore'); // NOTE - currently the 'cookies.json' file must already exist! -//var j = request.jar(new FileCookieStore('cookies.json')); +// var j = request.jar(new FileCookieStore('cookies.json')); requestWithJar = request.defaults({ jar : j }) request('http://www.google.com', function() { request('http://images.google.com'); diff --git a/types/request/tslint.json b/types/request/tslint.json index 287b4ac437..3ce98c0314 100644 --- a/types/request/tslint.json +++ b/types/request/tslint.json @@ -7,7 +7,6 @@ "ban-comma-operator": false, "ban-types": false, "callable-types": false, - "comment-format": false, "eofline": false, "export-just-namespace": false, "import-spacing": false,