UNPKG
is-class
Version:
latest (0.0.9)
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Check if function is an ES6 class.
github.com/miguelmota/is-class
miguelmota/is-class
is-class
/
index.d.ts
3 lines
(2 loc)
•
144 B
TypeScript
View Raw
1
2
3
export
function
isClass<T
extends
new
(...
args
:
any
[]) =>
any
=
new
(...
args
:
any
[]) =>
any
>(
target
:
any
): target is T;
export
default
isClass;