mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Stronger actor association typing in AP functions
This commit is contained in:
parent
511765c9f8
commit
5224c394b3
31 changed files with 146 additions and 89 deletions
3
server/typings/utils.ts
Normal file
3
server/typings/utils.ts
Normal file
|
@ -0,0 +1,3 @@
|
|||
export type FunctionPropertyNames<T> = { [K in keyof T]: T[K] extends Function ? K : never }[keyof T]
|
||||
|
||||
export type FunctionProperties<T> = Pick<T, FunctionPropertyNames<T>>
|
Loading…
Add table
Add a link
Reference in a new issue