mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 17:51:46 +00:00
removes the default export and return back to the initial proposal of "is-function"
This commit is contained in:
Vendored
+3
-1
@@ -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,4 +1,4 @@
|
||||
import isFunction from "is-function";
|
||||
import * as isFunction from "is-function";
|
||||
|
||||
const a: boolean = isFunction("string");
|
||||
const b: boolean = isFunction(true);
|
||||
|
||||
Reference in New Issue
Block a user