You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vetur is apparently using an outdated version of es5 type definition, instead of the definitions from devDependencies/typescript. So if I try to use a more recent feature like Parameters or ConstructorParameters, it gives me an error, but NonNullable works fine.
If I ctrl-click (Goto definition) on NonNullable, I'm taken to ~/.vscode/extensions/octref.vetur-0.16.2/server/node_modules/typescript/lib/lib.es5.d.ts:
which is apparently outdated in comparison to my projects node_modules/typescript/lib/lib.es5.d.ts:
The Parameters type was added on Typescript 3.1, my project is using TS 3.2.4
Reproducible Case
<template>
</template>
<script lang="ts">
importVuefrom'vue'typenString=NonNullable<string> // worksconst f = (a:string, b:number) => {}typesetupFilterParameters=Parameters<typeoff> // doesn't work, should return a type of [string, number]exportdefaultVue.extend({ name: 'SetupFilterDialog',data: () => ({ })})
</script>
The text was updated successfully, but these errors were encountered:
Info
Problem
Vetur is apparently using an outdated version of es5 type definition, instead of the definitions from devDependencies/typescript. So if I try to use a more recent feature like Parameters or ConstructorParameters, it gives me an error, but NonNullable works fine.
If I ctrl-click (Goto definition) on
NonNullable
, I'm taken to~/.vscode/extensions/octref.vetur-0.16.2/server/node_modules/typescript/lib/lib.es5.d.ts
:which is apparently outdated in comparison to my projects
node_modules/typescript/lib/lib.es5.d.ts
:The Parameters type was added on Typescript 3.1, my project is using TS 3.2.4
Reproducible Case
The text was updated successfully, but these errors were encountered: