Skip to content

Commit

Permalink
fix: directives type-check broken
Browse files Browse the repository at this point in the history
close #1228
  • Loading branch information
johnsoncodehk committed Apr 29, 2022
1 parent 981061f commit f4338ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/vue-code-gen/src/generators/template.ts
Expand Up @@ -1332,7 +1332,7 @@ export function generate(
) {

const diagStart = tsCodeGen.getText().length;
tsCodeGen.addText(`__VLS_types.directiveFunction(`);
tsCodeGen.addText(`__VLS_types.directiveFunction(__VLS_ctx.`);
writeCode(
camelize('v-' + prop.name),
{
Expand All @@ -1347,6 +1347,7 @@ export function generate(
applyNewName: keepHyphenateName,
},
);
identifiers.add(camelize('v-' + prop.name));
tsCodeGen.addText(`)(`);
if (prop.exp?.type === CompilerDOM.NodeTypes.SIMPLE_EXPRESSION) {
writeInterpolation(
Expand Down

0 comments on commit f4338ab

Please sign in to comment.