mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
300 B
TypeScript
10 lines
300 B
TypeScript
import isFunction = require("is-function");
|
|
|
|
const a: boolean = isFunction("string");
|
|
const b: boolean = isFunction(true);
|
|
const c: boolean = isFunction((x: number) => x * x);
|
|
const d: boolean = isFunction({ type: "number" });
|
|
const e: boolean = isFunction(() => {
|
|
return "I am anounymous!";
|
|
});
|