From: Alexandre Ferrera Date: Mon, 20 May 2024 11:33:18 +0000 (+0200) Subject: fix(compiler-core): change v-for key type to match Object.keys (#10963) X-Git-Tag: v3.4.28~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9fead5234320848f8be82275c6b5dd0a290f2cca;p=thirdparty%2Fvuejs%2Fcore.git fix(compiler-core): change v-for key type to match Object.keys (#10963) close #8819 --- diff --git a/packages/runtime-core/src/helpers/renderList.ts b/packages/runtime-core/src/helpers/renderList.ts index 655435fdd7..e4302fcc3b 100644 --- a/packages/runtime-core/src/helpers/renderList.ts +++ b/packages/runtime-core/src/helpers/renderList.ts @@ -42,7 +42,7 @@ export function renderList( source: T, renderItem: ( value: T[K], - key: K, + key: string, index: number, ) => VNodeChild, ): VNodeChild[]