Kaynağa Gözat

fix(types): allow `DirectiveArguments` third parameter to accept undefined (#11540)

Alex Liu 1 yıl önce
ebeveyn
işleme
1058ce8e74
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      packages/runtime-core/src/directives.ts

+ 1 - 1
packages/runtime-core/src/directives.ts

@@ -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]
 >
 
 /**