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
/
onlyFunctions.ts
6 lines
(4 loc)
•
177 B
text/typescript
View Raw
1
2
3
4
5
6
export type ClassFunctionNames
<
T
>
=
{
[
K
in
keyof
T
]
:
T
[
K
]
extends
(
args
:
any
)
=
>
any
?
K
:
never
}
[
keyof
T
]
; export type ClassFunctions
<
T
>
=
Pick
<
T
,
ClassFunctionNames
<
T
>
>
;