-
-
Notifications
You must be signed in to change notification settings - Fork 420
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad2cc53
commit 67afc73
Showing
3 changed files
with
28 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file was deleted.
Oops, something went wrong.