]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
fix(types): allow `DirectiveArguments` third parameter to accept undefined (#11540)
authorAlex Liu <dsa1314@gmail.com>
Wed, 7 Aug 2024 09:02:15 +0000 (17:02 +0800)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2024 09:02:15 +0000 (17:02 +0800)
packages/runtime-core/src/directives.ts

index b2618c03a6695368e1f940e223f6b170310b8f08..be10840784bb99f144a01f08fcc04f9e6bdfd8e5 100644 (file)
@@ -78,7 +78,7 @@ export type DirectiveArguments = Array<
   | [Directive | undefined]
   | [Directive | undefined, any]
   | [Directive | undefined, any, string]
-  | [Directive | undefined, any, string, DirectiveModifiers]
+  | [Directive | undefined, any, string | undefined, DirectiveModifiers]
 >
 
 /**