mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 14:59:37 +08:00
cleanup lint error: callable-types
This commit is contained in:
4
types/request/index.d.ts
vendored
4
types/request/index.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user