Skip to content

Commit

Permalink
fix: name casing
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Dec 20, 2024
1 parent 093912c commit ca01d4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function* generateElementEvents(
const name = isVNodeEvent
? 'vnode-' + prop.arg.loc.source.slice('vue:'.length)
: prop.arg.loc.source;
const originalPropName = camelize('on-' + prop.arg.loc.source);
const originalPropName = camelize('on-' + name);
yield `const ${ctx.getInternalVariable()}: __VLS_NormalizeComponentEvent<typeof ${propsVar}, typeof ${eventsVar}, '${originalPropName}', '${name}', '${camelize(name)}'> = {${newLine}`;
yield* generateEventArg(ctx, prop.arg, name, isVNodeEvent);
yield `: `;
Expand Down

0 comments on commit ca01d4f

Please sign in to comment.