UNPKG
is-constructor
Version:
latest (1.1.1)
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Check if a value is a constructor function
github.com/wbhob/is-constructor
wbhob/is-constructor
is-constructor
/
dist
/
index.d.ts
7 lines
(6 loc)
•
249 B
TypeScript
View Raw
1
2
3
4
5
6
7
declare
function
isConstructor<T>(
value
:
any
): value is
Constructor
<
any
>;
export
default
isConstructor;
export
type
Constructor
<T> =
new
(...
args
:
any
[]) => T;
declare
namespace
isConstructor
{
type
Constructor
<T> =
new
(...
args
:
any
[]) => T; }