UNPKG
@boost/decorators
Version:
latest (5.0.0)
next (5.0.0-alpha.2)
5.0.0
5.0.0-alpha.2
5.0.0-alpha.1
4.0.0
4.0.0-alpha.1
3.0.0
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
Experimental decorators for common patterns.
github.com/milesj/boost
milesj/boost
@boost/decorators
/
src
/
helpers
/
isClass.ts
8 lines
(7 loc)
•
186 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
export
function
isClass
(
target
:
Function
|
Object
,
property
?:
string
|
symbol
,
descriptor
?:
unknown
,
):
boolean
{
return
typeof
target ===
'function'
&& !property && !descriptor; }