diff options
Diffstat (limited to 'shared/core-utils')
-rw-r--r-- | shared/core-utils/utils/object.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/core-utils/utils/object.ts b/shared/core-utils/utils/object.ts index 7b2bb81d0..9a8a98f9b 100644 --- a/shared/core-utils/utils/object.ts +++ b/shared/core-utils/utils/object.ts | |||
@@ -1,5 +1,5 @@ | |||
1 | function pick <T extends object> (object: T, keys: (keyof T)[]) { | 1 | function pick <O extends object, K extends keyof O> (object: O, keys: K[]): Pick<O, K> { |
2 | const result: Partial<T> = {} | 2 | const result: any = {} |
3 | 3 | ||
4 | for (const key of keys) { | 4 | for (const key of keys) { |
5 | if (Object.prototype.hasOwnProperty.call(object, key)) { | 5 | if (Object.prototype.hasOwnProperty.call(object, key)) { |