But in vscode extension ms-vscode.vscode-typescript-next I just got this type for User (when I hover my mouse on it):
type User = {
name?: string;
age?: number;
email?: string;
website?: string;
createdOn?: Date;
}
I have tried typescript@4.7 for older version of NonNullable and then noticed that typescript: "^4.9" was using in current yup's devDependencies. And I switch to that version, using vscode command Select Typescript Version to select the workspace typescript sdk. Successfully switching to the specific version, but it still doesn't work.
Expected behavior
Just as documented, get an non optional object key inference.
Platform (please complete the following information):
To Reproduce Those code just shown in
readme.md
:But in vscode extension
ms-vscode.vscode-typescript-next
I just got this type forUser
(when I hover my mouse on it):I have tried
typescript@4.7
for older version ofNonNullable
and then noticed thattypescript: "^4.9"
was using in current yup'sdevDependencies
. And I switch to that version, using vscode commandSelect Typescript Version
to select the workspace typescript sdk. Successfully switching to the specific version, but it still doesn't work.Expected behavior Just as documented, get an non optional object key inference.
Platform (please complete the following information):
Additional context I have searched but amazingly found that few issue about this issue described.