Skip to content

Commit

Permalink
Restore TypeScript as any
Browse files Browse the repository at this point in the history
  • Loading branch information
anomiex committed Jul 17, 2024
1 parent b8470e3 commit 8a65368
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ const isMediaSourceConnected = async ( source: MediaSource ) =>
* @returns {boolean} True if the inserter is opened false otherwise.
*/
const isInserterOpened = (): boolean => {
const selectIsInserterOpened = select( 'core/editor' )?.isInserterOpened;
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
const selectIsInserterOpened = ( select( 'core/editor' ) as any )?.isInserterOpened;

const editorIsInserterOpened = selectIsInserterOpened?.();

Expand Down

0 comments on commit 8a65368

Please sign in to comment.