From 6ce7d0dab3e6fdb906122054fc39e454472cece4 Mon Sep 17 00:00:00 2001 From: Evangelos Zotos Date: Tue, 22 Jan 2019 23:47:14 +0100 Subject: [PATCH] removes the default export and return back to the initial proposal of "is-function" --- types/is-function/index.d.ts | 4 +++- types/is-function/is-function-tests.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/types/is-function/index.d.ts b/types/is-function/index.d.ts index 8cde4b0493..a979d606e3 100644 --- a/types/is-function/index.d.ts +++ b/types/is-function/index.d.ts @@ -3,4 +3,6 @@ // Definitions by: Evangelos Zotos // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -export default function isFunction(fn: any): boolean; +export = isFunction; +declare function isFunction(fn: any): boolean; +declare namespace isFunction {} diff --git a/types/is-function/is-function-tests.ts b/types/is-function/is-function-tests.ts index f18cd7b132..26caa76988 100644 --- a/types/is-function/is-function-tests.ts +++ b/types/is-function/is-function-tests.ts @@ -1,4 +1,4 @@ -import isFunction from "is-function"; +import * as isFunction from "is-function"; const a: boolean = isFunction("string"); const b: boolean = isFunction(true);