Skip to content

Commit

Permalink
Improve a11yAnnounce param type
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Sep 17, 2024
1 parent 7768392 commit 2925f52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/interactivity-router/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ export const { state, actions } = store( 'core/router', {
*
* @param messageKey The message to be announced by assistive technologies.
*/
function a11yAnnounce( messageKey: 'loading' | 'loaded' ) {
function a11yAnnounce( messageKey: keyof typeof navigationTexts ) {
if ( ! hasLoadedNavigationTextsData ) {
hasLoadedNavigationTextsData = true;
const content = document.getElementById(
Expand Down

0 comments on commit 2925f52

Please sign in to comment.