Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsoncodehk committed Aug 25, 2024
1 parent ad2cc53 commit 67afc73
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export function* generateElementDirectives(
prop.exp.loc.start.offset,
prop.exp.loc.end.offset,
ctx.codeFeatures.verification,
'value',
'value'
),
': ',
...wrapWith(
Expand All @@ -84,7 +84,7 @@ export function* generateElementDirectives(
ctx.codeFeatures.all,
'(',
')'
),
)
)
]
: [`undefined`]
Expand Down
26 changes: 26 additions & 0 deletions test-workspace/tsc/passedFixtures/vue3/#4682/main.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<template>
<div v-object1="[1, (_a: 1) => { }]"></div>
<div v-object2="[1, (_a: 1) => { }]"></div>
<div v-function1="[1, (_a: 1) => { }]"></div>
<div v-function2="[1, (_a: 1) => { }]"></div>
</template>

<script lang="ts" setup>
import { FunctionDirective } from 'vue';
import { ObjectDirective } from 'vue';
const vObject1 = {
created<T extends number>(
_el: HTMLElement,
_binding: { value: [T, (a: T) => void]; }
) { },
mounted<T extends number>(
_el: HTMLElement,
_binding: { value: [T, (a: T) => void]; },
_vNode: any,
) { },
};
const vObject2 = {} as any as ObjectDirective<any, [1, (a: 1) => void]>;
function vFunction1<T extends number>(_el: any, _binding: { value: [T, (a: T) => void]; }) { }
const vFunction2 = {} as any as FunctionDirective<any, [1, (a: 1) => void]>;
</script>
26 changes: 0 additions & 26 deletions test-workspace/tsc/vue3/#4682/main.vue

This file was deleted.

0 comments on commit 67afc73

Please sign in to comment.