-
Thanks for your answer the other day! Currently I have this issue:
When using this signature: function pick<T extends Record<string, any>, K extends string> (obj: T, keys: F.AutoPath<T, K>[]): O.P.Pick<T, S.Split<K, '.'>> It works like a charm if I try it with a payload like so: const doc = { name: 'n1', id: '1', filled: true, notpicked: false }
const res = pick(doc, ['name', 'filled', 'id']) however, it gives me that const res = pick(doc, []) |
Beta Was this translation helpful? Give feedback.
Answered by
millsp
Mar 6, 2021
Replies: 1 comment
-
At the moment function pick<T extends Record<string, any>, K extends string> (obj: T, path: F.AutoPath<T, K>): O.P.Pick<T, S.Split<K, '.'>> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
millsp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
At the moment
AutoPath
only takes a single string: