diff --git a/addon/components/au-accordion.gts b/addon/components/au-accordion.gts index b7f4b3b6c..41043c6dc 100644 --- a/addon/components/au-accordion.gts +++ b/addon/components/au-accordion.gts @@ -5,7 +5,7 @@ import { tracked } from '@glimmer/tracking'; import { modifier } from 'ember-modifier'; import AuButton from './au-button'; import AuContent from './au-content'; -import AuIcon from './au-icon'; +import AuIcon, { type AuIconSignature } from './au-icon'; import AuLoader from './au-loader'; import AuToolbar from './au-toolbar'; @@ -16,8 +16,8 @@ const autofocus = modifier(function autofocus(element: HTMLElement) { export interface AuAccordionSignature { Args: { buttonLabel?: string; - iconClosed?: string; - iconOpen?: string; + iconClosed?: AuIconSignature['Args']['icon']; + iconOpen?: AuIconSignature['Args']['icon']; isOpenInitially?: boolean; loading?: boolean; reverse?: boolean; diff --git a/addon/components/au-icon.gts b/addon/components/au-icon.gts index dba5e9302..b67c72831 100644 --- a/addon/components/au-icon.gts +++ b/addon/components/au-icon.gts @@ -7,10 +7,10 @@ export interface AuIconSignature { alignment?: 'left' | 'right'; // TODO: We should deprecate the non-boolean versions since there is no reason to support them ariaHidden?: boolean | 'true' | 'false'; - icon: string | ComponentLike>; + icon: string | ComponentLike<{ Element: Element }>; size?: 'large'; }; - Element: SVGSVGElement; + Element: Element; } export default class AuIcon extends Component { @@ -47,10 +47,10 @@ export default class AuIcon extends Component {