Skip to content

feat(language-core): typed directive arg and modifiers #4813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Oct 23, 2024
Prev Previous commit
Next Next commit
test: modify
  • Loading branch information
KazariEX committed Sep 18, 2024
commit 83c45a7baf3c068f5b86920bcdb8381cd2dc30cd
4 changes: 2 additions & 2 deletions test-workspace/tsc/passedFixtures/vue3/directives/option.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let Comp!: (_: { foo?: string; }) => void;

export default {
directives: {
vBar: {} as FunctionDirective<typeof Comp, (_: string) => void>
vFoo: {} as FunctionDirective<typeof Comp, (_: string) => void>
}
};
</script>
Expand All @@ -15,5 +15,5 @@ export default {
</script>

<template>
<Comp v-bar="v => exactType(v, {} as string)" />
<Comp v-foo="v => exactType(v, {} as string)" />
</template>