Просмотр исходного кода

types(runtime-dom): update aria-relevant type (#9043)

Kaine 2 лет назад
Родитель
Сommit
72fdafa0cf
1 измененных файлов с 11 добавлено и 1 удалено
  1. 11 1
      packages/runtime-dom/src/jsx.ts

+ 11 - 1
packages/runtime-dom/src/jsx.ts

@@ -188,7 +188,17 @@ interface AriaAttributes {
    * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.
    * @see aria-atomic.
    */
-  'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text'
+  'aria-relevant'?:
+    | 'additions'
+    | 'additions removals'
+    | 'additions text'
+    | 'all'
+    | 'removals'
+    | 'removals additions'
+    | 'removals text'
+    | 'text'
+    | 'text additions'
+    | 'text removals'
   /** Indicates that user input is required on the element before a form may be submitted. */
   'aria-required'?: Booleanish
   /** Defines a human-readable, author-localized description for the role of an element. */