Skip to content

Commit

Permalink
fix: core aria property types
Browse files Browse the repository at this point in the history
- mark aria props as any to enable compatibility with TS < 4.3 and 4.3+

Signed-off-by: Cory Rylan <splintercode.cb@gmail.com>
  • Loading branch information
coryrylan committed Nov 15, 2021
1 parent a41bcfe commit 07116d2
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions packages/core/src/polyfills/aria-reflect.ts
Expand Up @@ -13,46 +13,46 @@
declare global {
interface Element {
// overide ARIAMixin interface in TS lib.dom.d.ts 4.4.4+ https://github.com/microsoft/TypeScript/issues/46456
role: string | null;
ariaActiveDescendant: string | null;
ariaControls: string | null;
ariaLabelledBy: string | null;
ariaDisabled: string | null;
ariaExpanded: string | null;
ariaSelected: string | null;
ariaAtomic: string | null;
ariaAutoComplete: string | null;
ariaBusy: string | null;
ariaChecked: string | null;
ariaColCount: string | null;
ariaColIndex: string | null;
ariaColSpan: string | null;
ariaCurrent: string | null;
ariaHasPopup: string | null;
ariaHidden: string | null;
ariaKeyShortcuts: string | null;
ariaLabel: string | null;
ariaLevel: string | null;
ariaLive: string | null;
ariaModal: string | null;
ariaMultiLine: string | null;
ariaMultiSelectable: string | null;
ariaOrientation: string | null;
ariaPlaceholder: string | null;
ariaPosInSet: string | null;
ariaPressed: string | null;
ariaReadOnly: string | null;
ariaRequired: string | null;
ariaRoleDescription: string | null;
ariaRowCount: string | null;
ariaRowIndex: string | null;
ariaRowSpan: string | null;
ariaSetSize: string | null;
ariaSort: string | null;
ariaValueMax: string | null;
ariaValueMin: string | null;
ariaValueNow: string | null;
ariaValueText: string | null;
role: any;
ariaActiveDescendant: any;
ariaControls: any;
ariaLabelledBy: any;
ariaDisabled: any;
ariaExpanded: any;
ariaSelected: any;
ariaAtomic: any;
ariaAutoComplete: any;
ariaBusy: any;
ariaChecked: any;
ariaColCount: any;
ariaColIndex: any;
ariaColSpan: any;
ariaCurrent: any;
ariaHasPopup: any;
ariaHidden: any;
ariaKeyShortcuts: any;
ariaLabel: any;
ariaLevel: any;
ariaLive: any;
ariaModal: any;
ariaMultiLine: any;
ariaMultiSelectable: any;
ariaOrientation: any;
ariaPlaceholder: any;
ariaPosInSet: any;
ariaPressed: any;
ariaReadOnly: any;
ariaRequired: any;
ariaRoleDescription: any;
ariaRowCount: any;
ariaRowIndex: any;
ariaRowSpan: any;
ariaSetSize: any;
ariaSort: any;
ariaValueMax: any;
ariaValueMin: any;
ariaValueNow: any;
ariaValueText: any;
}
}

Expand Down

0 comments on commit 07116d2

Please sign in to comment.