The Typescript Pick type is not displaying intellisense mappings in vscode (or stackblitz). When using
Pick<MyType, 'someProperty'>
to define a type with a documented property of MyType, hovering over or trying to navigate to the definition of `.someProperty` does not show any documentation. However, this works fine for Partial<MyType>
.
To address this issue, I created a workaround type called
PickPartial<T, K extends keyof T>
and provided a demonstration here. Is this a bug within Typescript or vscode, or is this the intended behavior of the Pick type?