From ee5526f8620930643294c9f5a08e4e5675a307c7 Mon Sep 17 00:00:00 2001 From: segayuu Date: Mon, 30 Oct 2017 12:25:29 +0900 Subject: [PATCH] cleanup lint error: callable-types --- types/request/index.d.ts | 4 +--- types/request/tslint.json | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/types/request/index.d.ts b/types/request/index.d.ts index 6162f92fd8..20ad40e64e 100644 --- a/types/request/index.d.ts +++ b/types/request/index.d.ts @@ -174,9 +174,7 @@ declare namespace request { export type OptionsWithUrl = UrlOptions & CoreOptions; export type Options = OptionsWithUri | OptionsWithUrl; - export interface RequestCallback { - (error: any, response: RequestResponse, body: any): void; - } + export type RequestCallback = (error: any, response: RequestResponse, body: any) => void; export type ResponseRequest = CoreOptions & { uri: Url; diff --git a/types/request/tslint.json b/types/request/tslint.json index b3f1287bb8..91824c6ac1 100644 --- a/types/request/tslint.json +++ b/types/request/tslint.json @@ -2,7 +2,6 @@ "extends": "dtslint/dt.json", "rules": { "ban-types": false, - "callable-types": false, "no-duplicate-variable": false, "no-inferrable-types": false, "no-misused-new": false,