removes the default export and return back to the initial proposal of "is-function"

This commit is contained in:
Evangelos Zotos
2019-01-22 23:47:14 +01:00
parent d754d3c671
commit 6ce7d0dab3
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -3,4 +3,6 @@
// Definitions by: Evangelos Zotos <https://github.com/evangeloszotos>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export default function isFunction(fn: any): boolean;
export = isFunction;
declare function isFunction(fn: any): boolean;
declare namespace isFunction {}
+1 -1
View File
@@ -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);