Vue 2.7 directive type error

This issue has been created since 2022-09-20.

Version

2.7.10

Steps to reproduce

import Vue, { type ObjectDirective } from 'vue'

declare const vFoo: ObjectDirective<
    any,
    {
        foobar: string;
    }
>;
Vue.directive('foo', vFoo);

What is expected?

No type error

What is actually happening?

Argument of type 'ObjectDirective<any, { foobar: string; }>' is not assignable to parameter of type 'DirectiveOptions | DirectiveFunction | undefined'
More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-09-27
Star Count 199644
Watcher Count 6098
Fork Count 32848
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Links in OnCall plugin navigate current tab instead of opening a new one 1 2022-08-09 2022-09-17
Feedback from the current onboarding workflow 9 2021-07-03 2022-09-26
[REQUEST] Helper method for Member object for timeouts 5 2022-03-20 2022-09-15
Yale Connected Keyless Lock (zwave_js_notification help) 0 2022-06-22 2022-09-25
Import MAJIC 2022_Demande de Mise à jour Millésime "Version du format" et "Année" 1 2022-06-30 2022-09-12
No org-babel-execute function for jupyter-python 19 2021-01-10 2022-07-24
Strange behavior with choose while synthesizing 6 2022-03-30 2022-06-24
there is a problem with mediasoup 3 2022-04-21 2022-09-02
[Crash report] [Errno 2] Nie ma takiego p 0 2022-01-29 2022-08-01
"NoneType object is not callable" when trying to link between documents 12 2018-01-16 2022-09-11
GitLab style inline math 0 2017-10-24 2022-09-11
can not get the anchor of titles all in Chinese 3 2017-08-22 2022-09-11
Autostructify works on sphinx 1.6.7 but fails on 1.7.4 with 'character_level_inline_markup' AttributeError 3 2018-05-26 2022-09-11
Support for other langauges 10 2015-11-16 2022-09-16
Config files location? 1 2021-02-24 2021-12-23
Appmake's wave format too.. digital 4 2022-05-10 2022-09-18
math48 - zsdcc new ___mulsint2slong and ___muluint2ulong intrinsic functions 1 2022-05-12 2022-09-18
Target specific compiler binaries 7 2022-06-21 2022-09-18
code-block: Add support for specifying lines to include, exclude 0 2021-01-06 2022-07-07
文档编辑历史记录显示空白 1 2021-10-15 2022-01-16
Top Bar still visible 1 2021-08-02 2022-08-23
.msi file gone and not reparable 11 2021-03-29 2022-09-09
R CMD check rgdal_1.5-27.tar.gz --no-manual --no-examples failed when test [email protected] on centos8_aarch64 2 2021-11-05 2022-08-30
"Let's Go" link in case studies links to same page 2 2021-10-28 2022-08-28
How to obtain media data through API? 1 2022-06-06 2022-09-23
Delayed Unassigned Shards Incorrectly Labeled 1 2021-06-09 2022-08-02
Blocked when send a message 14 2022-03-30 2022-09-19
docs: Add info about compiledb 1 2021-04-12 2022-08-27
Merge patches from upstream to support LLVM 11 2 2021-02-11 2022-08-23
[Improvement]: Fix warning messages in the build 0 2021-12-14 2022-09-09
Broken dynamic init/fini pointers and crash on load when _init/_fini symbols are not defined. 4 2022-02-28 2022-08-01
Support very simple authentication on Web 7 2020-09-02 2022-09-21
透明代理无法连接到UDP Tracker 0 2021-07-17 2022-09-22
Inconsistent ranges of `CartesianIndex` 10 2021-12-05 2022-07-02
Malware / Phishing protection not possible in Manifest V3 5 2021-09-16 2022-07-25
specify origin of request when search for users 1 2021-07-22 2022-01-17
Add support for symbolic vectors 1 2021-11-04 2022-09-24
Can i use alacritty without a GPU 1 2022-06-25 2022-09-24
Duplicated .edl files 1 2021-08-27 2022-09-18
404 error when getting track/album/playlist/artist data 2 2022-04-07 2022-09-24
planned support for ClusterIssuer ? 1 2021-12-07 2022-09-15
`ProfileUpdatable` of user can't be `false`. 1 2021-11-12 2022-09-17
rtl8821ce-dkms doesn't build on kernel 5.18.10 0 2022-07-26 2022-09-08
New Lint: Detect Uninitialized Vec 2 2021-09-17 2022-08-20
Mouse Highlighter affected Focus Assist 5 2021-12-10 2022-07-19
How does the RetinaNet assign different size of objects to different FPN level? 0 2019-07-24 2022-09-16
Scattering elements into output which have depth? 1 2021-07-17 2022-09-10
[Doc] Regression in pulsar CLI docs 2 2022-03-30 2022-08-08
New default wallet handling for Desktop 1 2021-09-20 2022-09-22
Adding VPC Prefix list to kubernetesApiAccess block returns malformed CIDR block error 0 2022-06-21 2022-09-10