UNPKG
typescript-types
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
Typescript typings
github.com/krewi1/typescript-typings
typescript-types
/
types
/
class
/
onlyAttributes.ts
6 lines
(4 loc)
•
180 B
text/typescript
View Raw
1
2
3
4
5
6
export type ClassAttributeNames
<
T
>
=
{
[
K
in
keyof
T
]
:
T
[
K
]
extends
(
args
:
any
)
=
>
any
?
never
:
K
}
[
keyof
T
]
; export type ClassAttributes
<
T
>
=
Pick
<
T
,
ClassAttributeNames
<
T
>
>
;