Skip to content

mariusheine/vue-tsc-type-error-v-for-index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vue-tsc v-for type error reproduction repo

The related issue is vuejs/language-tools#591.

Execute

npm install
npm run typecheck

and then you get the following error message

src/test.vue:5:29 - error TS2345: Argument of type 'number | keyof Data[]' is not assignable to parameter of type 'number'.
  Type 'string' is not assignable to type 'number'.

5         <div>{{ formatIndex(index) }}</div>
                              ~~~~~

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published