diff options
Diffstat (limited to 'server/typings/utils.ts')
-rw-r--r-- | server/typings/utils.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/typings/utils.ts b/server/typings/utils.ts new file mode 100644 index 000000000..a86b05be2 --- /dev/null +++ b/server/typings/utils.ts | |||
@@ -0,0 +1,3 @@ | |||
1 | export type FunctionPropertyNames<T> = { [K in keyof T]: T[K] extends Function ? K : never }[keyof T] | ||
2 | |||
3 | export type FunctionProperties<T> = Pick<T, FunctionPropertyNames<T>> | ||